pub struct PatchedWritableVmInterfaceRequest {Show 16 fields
pub virtual_machine: Option<Box<PatchedVirtualDiskRequestVirtualMachine>>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub parent: Option<Option<i32>>,
pub bridge: Option<Option<i32>>,
pub mtu: Option<Option<i32>>,
pub primary_mac_address: Option<Option<Box<InterfaceRequestPrimaryMacAddress>>>,
pub description: Option<String>,
pub mode: Option<Option<Mode>>,
pub untagged_vlan: Option<Option<Box<InterfaceRequestUntaggedVlan>>>,
pub tagged_vlans: Option<Vec<i32>>,
pub qinq_svlan: Option<Option<Box<InterfaceRequestUntaggedVlan>>>,
pub vlan_translation_policy: Option<Option<Box<InterfaceRequestVlanTranslationPolicy>>>,
pub vrf: Option<Option<Box<IpAddressRequestVrf>>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PatchedWritableVmInterfaceRequest : Adds support for custom fields and tags.
Fields§
§virtual_machine: Option<Box<PatchedVirtualDiskRequestVirtualMachine>>§name: Option<String>§enabled: Option<bool>§parent: Option<Option<i32>>§bridge: Option<Option<i32>>§mtu: Option<Option<i32>>§primary_mac_address: Option<Option<Box<InterfaceRequestPrimaryMacAddress>>>§description: Option<String>§mode: Option<Option<Mode>>IEEE 802.1Q tagging strategy * access - Access * tagged - Tagged * tagged-all - Tagged (All) * q-in-q - Q-in-Q (802.1ad)
untagged_vlan: Option<Option<Box<InterfaceRequestUntaggedVlan>>>§tagged_vlans: Option<Vec<i32>>§qinq_svlan: Option<Option<Box<InterfaceRequestUntaggedVlan>>>§vlan_translation_policy: Option<Option<Box<InterfaceRequestVlanTranslationPolicy>>>§vrf: Option<Option<Box<IpAddressRequestVrf>>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedWritableVmInterfaceRequest
impl PatchedWritableVmInterfaceRequest
Sourcepub fn new() -> PatchedWritableVmInterfaceRequest
pub fn new() -> PatchedWritableVmInterfaceRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedWritableVmInterfaceRequest
impl Clone for PatchedWritableVmInterfaceRequest
Source§fn clone(&self) -> PatchedWritableVmInterfaceRequest
fn clone(&self) -> PatchedWritableVmInterfaceRequest
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 Default for PatchedWritableVmInterfaceRequest
impl Default for PatchedWritableVmInterfaceRequest
Source§fn default() -> PatchedWritableVmInterfaceRequest
fn default() -> PatchedWritableVmInterfaceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableVmInterfaceRequest
impl<'de> Deserialize<'de> for PatchedWritableVmInterfaceRequest
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 for PatchedWritableVmInterfaceRequest
impl PartialEq for PatchedWritableVmInterfaceRequest
Source§fn eq(&self, other: &PatchedWritableVmInterfaceRequest) -> bool
fn eq(&self, other: &PatchedWritableVmInterfaceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedWritableVmInterfaceRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableVmInterfaceRequest
impl RefUnwindSafe for PatchedWritableVmInterfaceRequest
impl Send for PatchedWritableVmInterfaceRequest
impl Sync for PatchedWritableVmInterfaceRequest
impl Unpin for PatchedWritableVmInterfaceRequest
impl UnwindSafe for PatchedWritableVmInterfaceRequest
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