pub struct PatchedBulkWritableVrfDeviceAssignmentRequest {
pub id: 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
PatchedBulkWritableVrfDeviceAssignmentRequest : 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: 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 PatchedBulkWritableVrfDeviceAssignmentRequest
impl PatchedBulkWritableVrfDeviceAssignmentRequest
Sourcepub fn new(id: Uuid) -> PatchedBulkWritableVrfDeviceAssignmentRequest
pub fn new(id: Uuid) -> PatchedBulkWritableVrfDeviceAssignmentRequest
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 PatchedBulkWritableVrfDeviceAssignmentRequest
impl Clone for PatchedBulkWritableVrfDeviceAssignmentRequest
Source§fn clone(&self) -> PatchedBulkWritableVrfDeviceAssignmentRequest
fn clone(&self) -> PatchedBulkWritableVrfDeviceAssignmentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchedBulkWritableVrfDeviceAssignmentRequest
impl Default for PatchedBulkWritableVrfDeviceAssignmentRequest
Source§fn default() -> PatchedBulkWritableVrfDeviceAssignmentRequest
fn default() -> PatchedBulkWritableVrfDeviceAssignmentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedBulkWritableVrfDeviceAssignmentRequest
impl<'de> Deserialize<'de> for PatchedBulkWritableVrfDeviceAssignmentRequest
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 PatchedBulkWritableVrfDeviceAssignmentRequest
impl PartialEq for PatchedBulkWritableVrfDeviceAssignmentRequest
Source§fn eq(&self, other: &PatchedBulkWritableVrfDeviceAssignmentRequest) -> bool
fn eq(&self, other: &PatchedBulkWritableVrfDeviceAssignmentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedBulkWritableVrfDeviceAssignmentRequest
Auto Trait Implementations§
impl Freeze for PatchedBulkWritableVrfDeviceAssignmentRequest
impl RefUnwindSafe for PatchedBulkWritableVrfDeviceAssignmentRequest
impl Send for PatchedBulkWritableVrfDeviceAssignmentRequest
impl Sync for PatchedBulkWritableVrfDeviceAssignmentRequest
impl Unpin for PatchedBulkWritableVrfDeviceAssignmentRequest
impl UnsafeUnpin for PatchedBulkWritableVrfDeviceAssignmentRequest
impl UnwindSafe for PatchedBulkWritableVrfDeviceAssignmentRequest
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