pub struct Flavor { /* private fields */ }
Expand description
Structure representing a flavor.
Implementations
sourceimpl Flavor
impl Flavor
sourcepub fn emphemeral_size(&self) -> u64
pub fn emphemeral_size(&self) -> u64
Get ephemeral disk size in GiB.
Returns 0
when ephemeral disk was not requested.
sourcepub fn extra_specs(&self) -> &HashMap<String, String>
pub fn extra_specs(&self) -> &HashMap<String, String>
Extra specs of the flavor.
sourcepub fn vcpu_count(&self) -> u32
pub fn vcpu_count(&self) -> u32
Get VCPU count.
Trait Implementations
sourceimpl From<Flavor> for ServerFlavor
impl From<Flavor> for ServerFlavor
sourcefn from(value: Flavor) -> ServerFlavor
fn from(value: Flavor) -> ServerFlavor
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more