Struct openstack::compute::Flavor
[−]
[src]
pub struct Flavor<'session> { /* fields omitted */ }
Structure representing a flavor.
Methods
impl<'session> Flavor<'session>
[src]
fn refresh(&mut self) -> Result<()>
[src]
Refresh the server.
fn emphemeral_size(&self) -> u64
[src]
Get ephemeral disk size in GiB.
Returns 0
when ephemeral disk was not requested.
fn id(&self) -> &String
[src]
Get a reference to flavor unique ID.
fn is_public(&self) -> bool
[src]
Whether the flavor is public.
fn name(&self) -> &String
[src]
Get a reference to flavor name.
fn ram_size(&self) -> u64
[src]
Get RAM size in MiB.
fn root_size(&self) -> u64
[src]
Get root disk size in GiB.
fn swap_size(&self) -> u64
[src]
Get swap size in MiB.
Returns 0
when swap was not requested.
fn vcpu_count(&self) -> u32
[src]
Get VCPU count.
Trait Implementations
impl<'session> Clone for Flavor<'session>
[src]
fn clone(&self) -> Flavor<'session>
[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<'session> Debug for Flavor<'session>
[src]
impl<'session> ResourceId for Flavor<'session>
[src]
fn resource_id(&self) -> String
[src]
Identifier of the current resource.
impl<'session> ListResources<'session> for Flavor<'session>
[src]
const DEFAULT_LIMIT: usize
DEFAULT_LIMIT: usize = 50
Default limit to use with this resource.
fn list_resources<Q: Serialize + Debug>(
session: &'session Session,
query: Q
) -> Result<Vec<Flavor<'session>>>
[src]
session: &'session Session,
query: Q
) -> Result<Vec<Flavor<'session>>>
List the resources from the session.
impl<'session> ToFlavorId for Flavor<'session>
[src]
fn to_flavor_id(&self) -> String
[src]
Get flavor ID as a string.