pub struct ServerFlavor {
pub ephemeral_size: u64,
pub extra_specs: Option<HashMap<String, String>>,
pub original_name: String,
pub ram_size: u64,
pub root_size: u64,
pub swap_size: u64,
pub vcpu_count: u32,
}Expand description
A summary information of a flavor used for a server.
Fields§
§ephemeral_size: u64Ephemeral disk size in GiB.
extra_specs: Option<HashMap<String, String>>Extra specs (if present).
original_name: StringName of the original flavor.
ram_size: u64RAM size in MiB.
root_size: u64Root disk size in GiB.
swap_size: u64Swap disk size in MiB.
vcpu_count: u32VCPU count.
Trait Implementations§
Source§impl Clone for ServerFlavor
impl Clone for ServerFlavor
Source§fn clone(&self) -> ServerFlavor
fn clone(&self) -> ServerFlavor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerFlavor
impl Debug for ServerFlavor
Source§impl<'de> Deserialize<'de> for ServerFlavor
impl<'de> Deserialize<'de> for ServerFlavor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Flavor> for ServerFlavor
impl From<Flavor> for ServerFlavor
Source§fn from(value: Flavor) -> ServerFlavor
fn from(value: Flavor) -> ServerFlavor
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerFlavor
impl RefUnwindSafe for ServerFlavor
impl Send for ServerFlavor
impl Sync for ServerFlavor
impl Unpin for ServerFlavor
impl UnwindSafe for ServerFlavor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more