logo
pub struct Bundle {
    pub bundle_id: Option<String>,
    pub cpu_count: Option<i64>,
    pub disk_size_in_gb: Option<i64>,
    pub instance_type: Option<String>,
    pub is_active: Option<bool>,
    pub name: Option<String>,
    pub power: Option<i64>,
    pub price: Option<f32>,
    pub ram_size_in_gb: Option<f32>,
    pub supported_platforms: Option<Vec<String>>,
    pub transfer_per_month_in_gb: Option<i64>,
}
Expand description

Describes a bundle, which is a set of specs describing your virtual private server (or instance).

Fields

bundle_id: Option<String>

The bundle ID (e.g., micro_1_0).

cpu_count: Option<i64>

The number of vCPUs included in the bundle (e.g., 2).

disk_size_in_gb: Option<i64>

The size of the SSD (e.g., 30).

instance_type: Option<String>

The Amazon EC2 instance type (e.g., t2.micro).

is_active: Option<bool>

A Boolean value indicating whether the bundle is active.

name: Option<String>

A friendly name for the bundle (e.g., Micro).

power: Option<i64>

A numeric value that represents the power of the bundle (e.g., 500). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.

price: Option<f32>

The price in US dollars (e.g., 5.0) of the bundle.

ram_size_in_gb: Option<f32>

The amount of RAM in GB (e.g., 2.0).

supported_platforms: Option<Vec<String>>

The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

transfer_per_month_in_gb: Option<i64>

The data transfer rate per month in GB (e.g., 2000).

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

Returns the “default value” for a type. 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 !=.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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)

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more