pub struct VmInterface {Show 23 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub mode: Option<Box<InterfaceMode>>,
pub mac_address: Option<Option<String>>,
pub enabled: Option<bool>,
pub mtu: Option<Option<i32>>,
pub name: String,
pub description: Option<String>,
pub status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub role: Option<Option<Box<ApprovalWorkflowUser>>>,
pub parent_interface: Option<Option<Box<BulkWritableInterfaceRequestParentInterface>>>,
pub bridge: Option<Option<Box<BridgeInterface>>>,
pub virtual_machine: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub untagged_vlan: Option<Option<Box<ApprovalWorkflowUser>>>,
pub vrf: Option<Option<Box<ApprovalWorkflowUser>>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub notes_url: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
VmInterface : Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§mode: Option<Box<InterfaceMode>>§mac_address: Option<Option<String>>§enabled: Option<bool>§mtu: Option<Option<i32>>§name: String§description: Option<String>§status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§role: Option<Option<Box<ApprovalWorkflowUser>>>§parent_interface: Option<Option<Box<BulkWritableInterfaceRequestParentInterface>>>§bridge: Option<Option<Box<BridgeInterface>>>§virtual_machine: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§untagged_vlan: Option<Option<Box<ApprovalWorkflowUser>>>§vrf: Option<Option<Box<ApprovalWorkflowUser>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§notes_url: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl VmInterface
impl VmInterface
Sourcepub fn new(
name: String,
status: ApprovalWorkflowStageResponseApprovalWorkflowStage,
virtual_machine: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> VmInterface
pub fn new( name: String, status: ApprovalWorkflowStageResponseApprovalWorkflowStage, virtual_machine: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> VmInterface
Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Trait Implementations§
Source§impl Clone for VmInterface
impl Clone for VmInterface
Source§fn clone(&self) -> VmInterface
fn clone(&self) -> VmInterface
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 VmInterface
impl Debug for VmInterface
Source§impl Default for VmInterface
impl Default for VmInterface
Source§fn default() -> VmInterface
fn default() -> VmInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VmInterface
impl<'de> Deserialize<'de> for VmInterface
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 VmInterface
impl PartialEq for VmInterface
Source§impl Serialize for VmInterface
impl Serialize for VmInterface
impl StructuralPartialEq for VmInterface
Auto Trait Implementations§
impl Freeze for VmInterface
impl RefUnwindSafe for VmInterface
impl Send for VmInterface
impl Sync for VmInterface
impl Unpin for VmInterface
impl UnsafeUnpin for VmInterface
impl UnwindSafe for VmInterface
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