pub struct CreateServerRequest {
pub server: ServerRequest,
}Fields§
§server: ServerRequestImplementations§
Source§impl CreateServerRequest
impl CreateServerRequest
pub fn new() -> Self
pub fn with_zone(self, zone: impl Into<String>) -> Self
pub fn with_hostname(self, hostname: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_plan(self, plan: impl Into<String>) -> Self
pub fn with_core_number(self, core_number: i32) -> Self
pub fn with_memory_amount(self, memory_amount: i32) -> Self
pub fn with_storage_device(self, device: CreateServerStorageDevice) -> Self
pub fn with_networking(self, networking: CreateServerNetworking) -> Self
pub fn with_login_user(self, login_user: LoginUser) -> Self
pub fn with_user_data(self, user_data: String) -> Self
pub fn with_avoid_host(self, avoid_host: i32) -> Self
pub fn with_host(self, host: i32) -> Self
pub fn with_boot_order(self, boot_order: String) -> Self
pub fn with_firewall(self, firewall: String) -> Self
pub fn with_labels(self, labels: Labels) -> Self
pub fn with_metadata(self, metadata: impl Into<String>) -> Self
pub fn with_nic_model(self, nic_model: String) -> Self
pub fn with_password_delivery(self, password_delivery: String) -> Self
pub fn with_server_group(self, server_group: String) -> Self
pub fn with_simple_backup(self, simple_backup: String) -> Self
pub fn with_timezone(self, timezone: String) -> Self
pub fn with_video_model(self, video_model: String) -> Self
pub fn with_remote_access( self, enabled: bool, access_type: Option<String>, password: Option<String>, ) -> Self
pub fn build(self) -> CreateServerRequest
Trait Implementations§
Source§impl Debug for CreateServerRequest
impl Debug for CreateServerRequest
Source§impl Default for CreateServerRequest
impl Default for CreateServerRequest
Source§fn default() -> CreateServerRequest
fn default() -> CreateServerRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateServerRequest
impl RefUnwindSafe for CreateServerRequest
impl Send for CreateServerRequest
impl Sync for CreateServerRequest
impl Unpin for CreateServerRequest
impl UnwindSafe for CreateServerRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more