pub struct VrfDeviceAssignment {
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub rd: Option<Option<String>>,
pub name: Option<String>,
pub vrf: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub device: Option<Option<Box<ApprovalWorkflowUser>>>,
pub virtual_machine: Option<Option<Box<ApprovalWorkflowUser>>>,
pub virtual_device_context: Option<Option<Box<ApprovalWorkflowUser>>>,
}Expand description
VrfDeviceAssignment : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§rd: Option<Option<String>>Unique route distinguisher (as defined in RFC 4364)
name: Option<String>§vrf: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§device: Option<Option<Box<ApprovalWorkflowUser>>>§virtual_machine: Option<Option<Box<ApprovalWorkflowUser>>>§virtual_device_context: Option<Option<Box<ApprovalWorkflowUser>>>Implementations§
Source§impl VrfDeviceAssignment
impl VrfDeviceAssignment
Sourcepub fn new(
vrf: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> VrfDeviceAssignment
pub fn new( vrf: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> VrfDeviceAssignment
Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Trait Implementations§
Source§impl Clone for VrfDeviceAssignment
impl Clone for VrfDeviceAssignment
Source§fn clone(&self) -> VrfDeviceAssignment
fn clone(&self) -> VrfDeviceAssignment
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 VrfDeviceAssignment
impl Debug for VrfDeviceAssignment
Source§impl Default for VrfDeviceAssignment
impl Default for VrfDeviceAssignment
Source§fn default() -> VrfDeviceAssignment
fn default() -> VrfDeviceAssignment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VrfDeviceAssignment
impl<'de> Deserialize<'de> for VrfDeviceAssignment
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 VrfDeviceAssignment
impl PartialEq for VrfDeviceAssignment
Source§impl Serialize for VrfDeviceAssignment
impl Serialize for VrfDeviceAssignment
impl StructuralPartialEq for VrfDeviceAssignment
Auto Trait Implementations§
impl Freeze for VrfDeviceAssignment
impl RefUnwindSafe for VrfDeviceAssignment
impl Send for VrfDeviceAssignment
impl Sync for VrfDeviceAssignment
impl Unpin for VrfDeviceAssignment
impl UnsafeUnpin for VrfDeviceAssignment
impl UnwindSafe for VrfDeviceAssignment
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