pub struct CreateServer1Request {Show 14 fields
pub name: String,
pub dynamic_ip_required: Option<Option<bool>>,
pub commercial_type: String,
pub image: Option<String>,
pub volumes: Option<CreateServer1RequestVolumes>,
pub enable_ipv6: Option<bool>,
pub public_ip: Option<Option<String>>,
pub boot_type: Option<BootType>,
pub bootscript: Option<Option<String>>,
pub organization: Option<String>,
pub project: Option<String>,
pub tags: Option<Vec<String>>,
pub security_group: Option<Option<String>>,
pub placement_group: Option<Option<String>>,
}
Fields§
§name: String
The server name
dynamic_ip_required: Option<Option<bool>>
Define if a dynamic IP is required for the instance
commercial_type: String
Define the server commercial type (i.e. GP1-S)
image: Option<String>
The server image ID
volumes: Option<CreateServer1RequestVolumes>
§enable_ipv6: Option<bool>
True if IPv6 is enabled on the server
public_ip: Option<Option<String>>
The ID of the reserved IP to attach to the server
boot_type: Option<BootType>
The boot type to use
bootscript: Option<Option<String>>
The bootscript ID to use when boot_type
is set to bootscript
organization: Option<String>
The server organization ID
project: Option<String>
The server project ID
The server tags
security_group: Option<Option<String>>
The security group ID
placement_group: Option<Option<String>>
Placement group ID if server must be part of a placement group
Implementations§
source§impl CreateServer1Request
impl CreateServer1Request
pub fn new(name: String, commercial_type: String) -> CreateServer1Request
Trait Implementations§
source§impl Clone for CreateServer1Request
impl Clone for CreateServer1Request
source§fn clone(&self) -> CreateServer1Request
fn clone(&self) -> CreateServer1Request
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 CreateServer1Request
impl Debug for CreateServer1Request
source§impl Default for CreateServer1Request
impl Default for CreateServer1Request
source§fn default() -> CreateServer1Request
fn default() -> CreateServer1Request
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateServer1Request
impl<'de> Deserialize<'de> for CreateServer1Request
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<CreateServer1Request> for CreateServer1Request
impl PartialEq<CreateServer1Request> for CreateServer1Request
source§fn eq(&self, other: &CreateServer1Request) -> bool
fn eq(&self, other: &CreateServer1Request) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.