Struct scaleway_api_rs::models::scaleway_instance_v1_server_type::ScalewayInstanceV1ServerType[][src]

pub struct ScalewayInstanceV1ServerType {
    pub monthly_price: Option<f32>,
    pub hourly_price: Option<f32>,
    pub alt_names: Option<Vec<String>>,
    pub per_volume_constraint: Option<Box<ScalewayInstanceV1ServerTypePerVolumeConstraint>>,
    pub volumes_constraint: Option<Box<ScalewayInstanceV1ServerTypeVolumesConstraint>>,
    pub ncpus: Option<f32>,
    pub gpu: Option<f32>,
    pub ram: Option<f32>,
    pub arch: Option<Arch>,
    pub baremetal: Option<bool>,
    pub network: Option<Box<ScalewayInstanceV1ServerTypeNetwork>>,
}

Fields

monthly_price: Option<f32>

Estimated monthly price, for a 30 days month, in Euro

hourly_price: Option<f32>

Hourly price in Euro

alt_names: Option<Vec<String>>

Alternative instance name if any

per_volume_constraint: Option<Box<ScalewayInstanceV1ServerTypePerVolumeConstraint>>volumes_constraint: Option<Box<ScalewayInstanceV1ServerTypeVolumesConstraint>>ncpus: Option<f32>

Number of CPU

gpu: Option<f32>

Number of GPU

ram: Option<f32>

Available RAM in bytes

arch: Option<Arch>

CPU architecture

baremetal: Option<bool>

True if it is a baremetal instance

network: Option<Box<ScalewayInstanceV1ServerTypeNetwork>>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.