Struct openstack::compute::Flavor
[−]
[src]
pub struct Flavor { /* fields omitted */ }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 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]
fn clone(&self) -> Flavor[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Flavor[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Refresh for Flavor[src]
impl ResourceId for Flavor[src]
fn resource_id(&self) -> String[src]
Identifier of the current resource.
impl ListResources for Flavor[src]
const DEFAULT_LIMIT: usize
DEFAULT_LIMIT: usize = 50
Default limit to use with this resource.
fn list_resources<Q: Serialize + Debug>(
session: Rc<Session>,
query: Q
) -> Result<Vec<Flavor>>[src]
session: Rc<Session>,
query: Q
) -> Result<Vec<Flavor>>
List the resources from the session.
fn can_paginate(_session: &Session) -> Result<bool>[src]
Whether pagination is supported for this resource.