[][src]Struct openstack::compute::Flavor

pub struct Flavor { /* fields omitted */ }
[]

Structure representing a flavor.

Implementations

impl Flavor[src][]

pub fn emphemeral_size(&self) -> u64[src][]

Get ephemeral disk size in GiB.

Returns 0 when ephemeral disk was not requested.

pub fn extra_specs(&self) -> &HashMap<String, String>[src][]

Extra specs of the flavor.

pub fn id(&self) -> &String[src][]

Get a reference to flavor unique ID.

pub fn is_public(&self) -> bool[src][]

Whether the flavor is public.

pub fn name(&self) -> &String[src][]

Get a reference to flavor name.

pub fn ram_size(&self) -> u64[src][]

Get RAM size in MiB.

pub fn root_size(&self) -> u64[src][]

Get root disk size in GiB.

pub fn swap_size(&self) -> u64[src][]

Get swap size in MiB.

Returns 0 when swap was not requested.

pub fn vcpu_count(&self) -> u32[src][]

Get VCPU count.

Trait Implementations

impl Clone for Flavor[src][+]

impl Debug for Flavor[src][+]

impl From<Flavor> for FlavorRef[src][+]

impl From<Flavor> for ServerFlavor[src][+]

impl Refresh for Flavor[src][+]

fn refresh(&mut self) -> Result<()>[src][]

Refresh the flavor.

Auto Trait Implementations

impl !RefUnwindSafe for Flavor

impl !Send for Flavor

impl !Sync for Flavor

impl Unpin for Flavor

impl !UnwindSafe for Flavor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T> Instrument for T[src][+]

impl<T> Instrument for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.