pub struct PatchedVrfDeviceAssignmentRequest {
pub id: Option<Uuid>,
pub rd: Option<Option<String>>,
pub name: Option<String>,
pub vrf: Option<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
PatchedVrfDeviceAssignmentRequest : 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>§rd: Option<Option<String>>Unique route distinguisher (as defined in RFC 4364)
name: Option<String>§vrf: Option<Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§device: Option<Option<Box<ApprovalWorkflowUser>>>§virtual_machine: Option<Option<Box<ApprovalWorkflowUser>>>§virtual_device_context: Option<Option<Box<ApprovalWorkflowUser>>>Implementations§
Source§impl PatchedVrfDeviceAssignmentRequest
impl PatchedVrfDeviceAssignmentRequest
Sourcepub fn new() -> PatchedVrfDeviceAssignmentRequest
pub fn new() -> PatchedVrfDeviceAssignmentRequest
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 PatchedVrfDeviceAssignmentRequest
impl Clone for PatchedVrfDeviceAssignmentRequest
Source§fn clone(&self) -> PatchedVrfDeviceAssignmentRequest
fn clone(&self) -> PatchedVrfDeviceAssignmentRequest
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 Default for PatchedVrfDeviceAssignmentRequest
impl Default for PatchedVrfDeviceAssignmentRequest
Source§fn default() -> PatchedVrfDeviceAssignmentRequest
fn default() -> PatchedVrfDeviceAssignmentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedVrfDeviceAssignmentRequest
impl<'de> Deserialize<'de> for PatchedVrfDeviceAssignmentRequest
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 PatchedVrfDeviceAssignmentRequest
impl PartialEq for PatchedVrfDeviceAssignmentRequest
Source§fn eq(&self, other: &PatchedVrfDeviceAssignmentRequest) -> bool
fn eq(&self, other: &PatchedVrfDeviceAssignmentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedVrfDeviceAssignmentRequest
Auto Trait Implementations§
impl Freeze for PatchedVrfDeviceAssignmentRequest
impl RefUnwindSafe for PatchedVrfDeviceAssignmentRequest
impl Send for PatchedVrfDeviceAssignmentRequest
impl Sync for PatchedVrfDeviceAssignmentRequest
impl Unpin for PatchedVrfDeviceAssignmentRequest
impl UnsafeUnpin for PatchedVrfDeviceAssignmentRequest
impl UnwindSafe for PatchedVrfDeviceAssignmentRequest
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