pub struct VlanRequest {
pub id: Option<Uuid>,
pub location: Option<Option<Box<BulkWritablePrefixRequestLocation>>>,
pub vid: i32,
pub name: String,
pub description: Option<String>,
pub vlan_group: Option<Option<Box<ApprovalWorkflowUser>>>,
pub status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub role: Option<Option<Box<ApprovalWorkflowUser>>>,
pub tenant: Option<Option<Box<ApprovalWorkflowUser>>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
}Expand description
VlanRequest : 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>§location: Option<Option<Box<BulkWritablePrefixRequestLocation>>>§vid: i32§name: String§description: Option<String>§vlan_group: Option<Option<Box<ApprovalWorkflowUser>>>§status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§role: Option<Option<Box<ApprovalWorkflowUser>>>§tenant: Option<Option<Box<ApprovalWorkflowUser>>>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl VlanRequest
impl VlanRequest
Sourcepub fn new(
vid: i32,
name: String,
status: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> VlanRequest
pub fn new( vid: i32, name: String, status: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> VlanRequest
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 VlanRequest
impl Clone for VlanRequest
Source§fn clone(&self) -> VlanRequest
fn clone(&self) -> VlanRequest
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 VlanRequest
impl Debug for VlanRequest
Source§impl Default for VlanRequest
impl Default for VlanRequest
Source§fn default() -> VlanRequest
fn default() -> VlanRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VlanRequest
impl<'de> Deserialize<'de> for VlanRequest
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 VlanRequest
impl PartialEq for VlanRequest
Source§impl Serialize for VlanRequest
impl Serialize for VlanRequest
impl StructuralPartialEq for VlanRequest
Auto Trait Implementations§
impl Freeze for VlanRequest
impl RefUnwindSafe for VlanRequest
impl Send for VlanRequest
impl Sync for VlanRequest
impl Unpin for VlanRequest
impl UnsafeUnpin for VlanRequest
impl UnwindSafe for VlanRequest
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