pub struct InterfaceTemplate {Show 19 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub notes_url: Option<String>,
pub type: Box<InterfaceType>,
pub port_type: Option<Box<FrontPortType>>,
pub name: String,
pub label: Option<String>,
pub description: Option<String>,
pub mgmt_only: Option<bool>,
pub speed: Option<Option<i32>>,
pub duplex: Option<Box<BulkWritableInterfaceTemplateRequestDuplex>>,
pub device_type: Option<Option<Box<ApprovalWorkflowUser>>>,
pub module_type: Option<Option<Box<ApprovalWorkflowUser>>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
InterfaceTemplate : 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>§notes_url: Option<String>§type: Box<InterfaceType>§port_type: Option<Box<FrontPortType>>§name: String§label: Option<String>Physical label
description: Option<String>§mgmt_only: Option<bool>§speed: Option<Option<i32>>§duplex: Option<Box<BulkWritableInterfaceTemplateRequestDuplex>>§device_type: Option<Option<Box<ApprovalWorkflowUser>>>§module_type: Option<Option<Box<ApprovalWorkflowUser>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl InterfaceTemplate
impl InterfaceTemplate
Sourcepub fn new(type: InterfaceType, name: String) -> InterfaceTemplate
pub fn new(type: InterfaceType, name: String) -> InterfaceTemplate
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 InterfaceTemplate
impl Clone for InterfaceTemplate
Source§fn clone(&self) -> InterfaceTemplate
fn clone(&self) -> InterfaceTemplate
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 InterfaceTemplate
impl Debug for InterfaceTemplate
Source§impl Default for InterfaceTemplate
impl Default for InterfaceTemplate
Source§fn default() -> InterfaceTemplate
fn default() -> InterfaceTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InterfaceTemplate
impl<'de> Deserialize<'de> for InterfaceTemplate
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 InterfaceTemplate
impl PartialEq for InterfaceTemplate
Source§impl Serialize for InterfaceTemplate
impl Serialize for InterfaceTemplate
impl StructuralPartialEq for InterfaceTemplate
Auto Trait Implementations§
impl Freeze for InterfaceTemplate
impl RefUnwindSafe for InterfaceTemplate
impl Send for InterfaceTemplate
impl Sync for InterfaceTemplate
impl Unpin for InterfaceTemplate
impl UnsafeUnpin for InterfaceTemplate
impl UnwindSafe for InterfaceTemplate
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