Struct hcloud::models::server_type::ServerType
source · pub struct ServerType {Show 13 fields
pub architecture: Architecture,
pub cores: i32,
pub cpu_type: CpuType,
pub deprecated: Option<bool>,
pub deprecation: Option<Option<Box<DeprecationInfo>>>,
pub description: String,
pub disk: f32,
pub id: i64,
pub included_traffic: i64,
pub memory: f32,
pub name: String,
pub prices: Vec<PricePerTime>,
pub storage_type: StorageType,
}
Fields§
§architecture: Architecture
§cores: i32
Number of cpu cores a Server of this type will have
cpu_type: CpuType
Type of cpu
deprecated: Option<bool>
This field is deprecated. Use the deprecation object instead
deprecation: Option<Option<Box<DeprecationInfo>>>
§description: String
Description of the Server type
disk: f32
Disk size a Server of this type will have in GB
id: i64
ID of the Server type
included_traffic: i64
Free traffic per month in bytes
memory: f32
Memory a Server of this type will have in GB
name: String
Unique identifier of the Server type
prices: Vec<PricePerTime>
Prices in different Locations
storage_type: StorageType
Type of Server boot drive. Local has higher speed. Network has better availability.
Implementations§
source§impl ServerType
impl ServerType
pub fn new( architecture: Architecture, cores: i32, cpu_type: CpuType, deprecated: Option<bool>, description: String, disk: f32, id: i64, included_traffic: i64, memory: f32, name: String, prices: Vec<PricePerTime>, storage_type: StorageType ) -> ServerType
Trait Implementations§
source§impl Clone for ServerType
impl Clone for ServerType
source§fn clone(&self) -> ServerType
fn clone(&self) -> ServerType
Returns a copy 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 ServerType
impl Debug for ServerType
source§impl Default for ServerType
impl Default for ServerType
source§fn default() -> ServerType
fn default() -> ServerType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServerType
impl<'de> Deserialize<'de> for ServerType
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 PartialEq for ServerType
impl PartialEq for ServerType
source§fn eq(&self, other: &ServerType) -> bool
fn eq(&self, other: &ServerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServerType
impl Serialize for ServerType
impl StructuralPartialEq for ServerType
Auto Trait Implementations§
impl RefUnwindSafe for ServerType
impl Send for ServerType
impl Sync for ServerType
impl Unpin for ServerType
impl UnwindSafe for ServerType
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