pub struct WritableVmInterfaceRequest {Show 16 fields
pub virtual_machine: Box<PatchedVirtualDiskRequestVirtualMachine>,
pub name: 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
WritableVmInterfaceRequest : Adds support for custom fields and tags.
Fields§
§virtual_machine: Box<PatchedVirtualDiskRequestVirtualMachine>§name: 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 WritableVmInterfaceRequest
impl WritableVmInterfaceRequest
Sourcepub fn new(
virtual_machine: PatchedVirtualDiskRequestVirtualMachine,
name: String,
) -> WritableVmInterfaceRequest
pub fn new( virtual_machine: PatchedVirtualDiskRequestVirtualMachine, name: String, ) -> WritableVmInterfaceRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for WritableVmInterfaceRequest
impl Clone for WritableVmInterfaceRequest
Source§fn clone(&self) -> WritableVmInterfaceRequest
fn clone(&self) -> WritableVmInterfaceRequest
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 WritableVmInterfaceRequest
impl Debug for WritableVmInterfaceRequest
Source§impl Default for WritableVmInterfaceRequest
impl Default for WritableVmInterfaceRequest
Source§fn default() -> WritableVmInterfaceRequest
fn default() -> WritableVmInterfaceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritableVmInterfaceRequest
impl<'de> Deserialize<'de> for WritableVmInterfaceRequest
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
impl StructuralPartialEq for WritableVmInterfaceRequest
Auto Trait Implementations§
impl Freeze for WritableVmInterfaceRequest
impl RefUnwindSafe for WritableVmInterfaceRequest
impl Send for WritableVmInterfaceRequest
impl Sync for WritableVmInterfaceRequest
impl Unpin for WritableVmInterfaceRequest
impl UnwindSafe for WritableVmInterfaceRequest
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