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