pub struct PlatformRequest {
pub id: Option<Uuid>,
pub name: String,
pub network_driver: Option<String>,
pub napalm_driver: Option<String>,
pub napalm_args: Option<Option<Value>>,
pub description: Option<String>,
pub manufacturer: Option<Option<Box<BulkWritablePlatformRequestManufacturer>>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
}Expand description
PlatformRequest : 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>§name: String§network_driver: Option<String>The normalized network driver to use when interacting with devices, e.g. cisco_ios, arista_eos, etc. Library-specific driver names will be derived from this setting as appropriate
napalm_driver: Option<String>The name of the NAPALM driver to use when Nautobot internals interact with devices
napalm_args: Option<Option<Value>>Additional arguments to pass when initiating the NAPALM driver (JSON format)
description: Option<String>§manufacturer: Option<Option<Box<BulkWritablePlatformRequestManufacturer>>>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl PlatformRequest
impl PlatformRequest
Sourcepub fn new(name: String) -> PlatformRequest
pub fn new(name: String) -> PlatformRequest
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 PlatformRequest
impl Clone for PlatformRequest
Source§fn clone(&self) -> PlatformRequest
fn clone(&self) -> PlatformRequest
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 PlatformRequest
impl Debug for PlatformRequest
Source§impl Default for PlatformRequest
impl Default for PlatformRequest
Source§fn default() -> PlatformRequest
fn default() -> PlatformRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlatformRequest
impl<'de> Deserialize<'de> for PlatformRequest
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 PlatformRequest
impl PartialEq for PlatformRequest
Source§impl Serialize for PlatformRequest
impl Serialize for PlatformRequest
impl StructuralPartialEq for PlatformRequest
Auto Trait Implementations§
impl Freeze for PlatformRequest
impl RefUnwindSafe for PlatformRequest
impl Send for PlatformRequest
impl Sync for PlatformRequest
impl Unpin for PlatformRequest
impl UnsafeUnpin for PlatformRequest
impl UnwindSafe for PlatformRequest
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