pub struct PatchedBulkOwnerRequest {
pub id: i32,
pub name: Option<String>,
pub group: Option<Option<Box<BulkOwnerRequestGroup>>>,
pub description: Option<String>,
pub user_groups: Option<Vec<i32>>,
pub users: Option<Vec<i32>>,
}Expand description
PatchedBulkOwnerRequest : 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: i32§name: Option<String>§group: Option<Option<Box<BulkOwnerRequestGroup>>>§description: Option<String>§user_groups: Option<Vec<i32>>§users: Option<Vec<i32>>Implementations§
Source§impl PatchedBulkOwnerRequest
impl PatchedBulkOwnerRequest
Sourcepub fn new(id: i32) -> PatchedBulkOwnerRequest
pub fn new(id: i32) -> PatchedBulkOwnerRequest
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 PatchedBulkOwnerRequest
impl Clone for PatchedBulkOwnerRequest
Source§fn clone(&self) -> PatchedBulkOwnerRequest
fn clone(&self) -> PatchedBulkOwnerRequest
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 Debug for PatchedBulkOwnerRequest
impl Debug for PatchedBulkOwnerRequest
Source§impl Default for PatchedBulkOwnerRequest
impl Default for PatchedBulkOwnerRequest
Source§fn default() -> PatchedBulkOwnerRequest
fn default() -> PatchedBulkOwnerRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedBulkOwnerRequest
impl<'de> Deserialize<'de> for PatchedBulkOwnerRequest
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 PatchedBulkOwnerRequest
impl PartialEq for PatchedBulkOwnerRequest
Source§impl Serialize for PatchedBulkOwnerRequest
impl Serialize for PatchedBulkOwnerRequest
impl StructuralPartialEq for PatchedBulkOwnerRequest
Auto Trait Implementations§
impl Freeze for PatchedBulkOwnerRequest
impl RefUnwindSafe for PatchedBulkOwnerRequest
impl Send for PatchedBulkOwnerRequest
impl Sync for PatchedBulkOwnerRequest
impl Unpin for PatchedBulkOwnerRequest
impl UnsafeUnpin for PatchedBulkOwnerRequest
impl UnwindSafe for PatchedBulkOwnerRequest
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