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