pub struct ServerType {Show 14 fields
pub architecture: Architecture,
pub category: Option<String>,
pub cores: i32,
pub cpu_type: CpuType,
pub deprecated: Option<bool>,
pub deprecation: Option<Option<Box<DeprecationInfo>>>,
pub description: String,
pub disk: f64,
pub id: i64,
pub locations: Vec<ServerTypeLocation>,
pub memory: f64,
pub name: String,
pub prices: Vec<PricePerTime>,
pub storage_type: StorageType,
}Fields§
§architecture: Architecture§category: Option<String>Category of Server Type.
cores: i32Number of cpu cores a Server of this type will have.
cpu_type: CpuTypeType of cpu.
deprecated: Option<bool>This field is deprecated. Use the deprecation object instead.
deprecation: Option<Option<Box<DeprecationInfo>>>This field is deprecated. Use the deprecation object in the locations field instead (.locations[].deprecation).
description: StringDescription of the Server type.
disk: f64Disk size a Server of this type will have in GB.
id: i64ID of the Server type.
locations: Vec<ServerTypeLocation>Supported Location and per Location details for the Server Type. A Server Type is: - only supported in the Location that are listed. - deprecated in the Location when the deprecation property is set. - unavailable in the Location when the deprecation.unavailable_after date is in the past.
memory: f64Memory a Server of this type will have in GB.
name: StringUnique identifier of the Server type.
prices: Vec<PricePerTime>Price per Location.
storage_type: StorageTypeType 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: f64, id: i64, locations: Vec<ServerTypeLocation>, memory: f64, 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more