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>,
}
Describes a bundle, which is a set of specs describing your virtual private server (or instance).
The bundle ID (e.g., micro_1_0
).
The number of vCPUs included in the bundle (e.g., 2
).
The size of the SSD (e.g., 30
).
The Amazon EC2 instance type (e.g., t2.micro
).
A Boolean value indicating whether the bundle is active.
A friendly name for the bundle (e.g., Micro
).
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.
The price in US dollars (e.g., 5.0
).
The amount of RAM in GB (e.g., 2.0
).
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.
The data transfer rate per month in GB (e.g., 2000
).
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static