[−][src]Struct openstack::compute::Flavor
Structure representing a flavor.
Methods
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 Refresh for Flavor[src]
impl Clone for Flavor[src]
fn clone(&self) -> Flavor[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl From<Flavor> for FlavorRef[src]
impl From<Flavor> for ServerFlavor[src]
fn from(value: Flavor) -> ServerFlavor[src]
impl Debug for Flavor[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.