[−][src]Struct openstack::compute::Flavor
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]
fn from(value: Flavor) -> ServerFlavor
[src]
impl Refresh for Flavor
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,