pub struct CreateServerInterface {
pub ip_addresses: IPAddressWrapper,
pub interface_type: String,
pub network: Option<String>,
pub source_ip_filtering: Option<String>,
pub bootable: Option<String>,
pub index: Option<i32>,
}Fields§
§ip_addresses: IPAddressWrapper§interface_type: String§network: Option<String>§source_ip_filtering: Option<String>§bootable: Option<String>§index: Option<i32>Implementations§
Source§impl CreateServerInterface
impl CreateServerInterface
pub fn new(interface_type: impl Into<String>) -> Self
pub fn with_ip_address( self, family: impl Into<String>, address: Option<String>, ) -> Self
pub fn with_source_ip_filtering(self, enabled: bool) -> Self
pub fn with_bootable(self, bootable: bool) -> Self
pub fn with_index(self, index: i32) -> Self
Trait Implementations§
Source§impl Clone for CreateServerInterface
impl Clone for CreateServerInterface
Source§fn clone(&self) -> CreateServerInterface
fn clone(&self) -> CreateServerInterface
Returns a duplicate 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 CreateServerInterface
impl Debug for CreateServerInterface
Source§impl<'de> Deserialize<'de> for CreateServerInterface
impl<'de> Deserialize<'de> for CreateServerInterface
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
Auto Trait Implementations§
impl Freeze for CreateServerInterface
impl RefUnwindSafe for CreateServerInterface
impl Send for CreateServerInterface
impl Sync for CreateServerInterface
impl Unpin for CreateServerInterface
impl UnwindSafe for CreateServerInterface
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