pub struct PatchedBulkObjectPermissionRequest {
pub id: i32,
pub name: Option<String>,
pub description: Option<String>,
pub enabled: Option<bool>,
pub object_types: Option<Vec<String>>,
pub actions: Option<Vec<String>>,
pub constraints: Option<Option<Value>>,
pub groups: Option<Vec<i32>>,
pub users: Option<Vec<i32>>,
}Expand description
PatchedBulkObjectPermissionRequest : 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>§description: Option<String>§enabled: Option<bool>§object_types: Option<Vec<String>>§actions: Option<Vec<String>>The list of actions granted by this permission
constraints: Option<Option<Value>>Queryset filter matching the applicable objects of the selected type(s)
groups: Option<Vec<i32>>§users: Option<Vec<i32>>Implementations§
Source§impl PatchedBulkObjectPermissionRequest
impl PatchedBulkObjectPermissionRequest
Sourcepub fn new(id: i32) -> PatchedBulkObjectPermissionRequest
pub fn new(id: i32) -> PatchedBulkObjectPermissionRequest
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 PatchedBulkObjectPermissionRequest
impl Clone for PatchedBulkObjectPermissionRequest
Source§fn clone(&self) -> PatchedBulkObjectPermissionRequest
fn clone(&self) -> PatchedBulkObjectPermissionRequest
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 PatchedBulkObjectPermissionRequest
impl Default for PatchedBulkObjectPermissionRequest
Source§fn default() -> PatchedBulkObjectPermissionRequest
fn default() -> PatchedBulkObjectPermissionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedBulkObjectPermissionRequest
impl<'de> Deserialize<'de> for PatchedBulkObjectPermissionRequest
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
impl StructuralPartialEq for PatchedBulkObjectPermissionRequest
Auto Trait Implementations§
impl Freeze for PatchedBulkObjectPermissionRequest
impl RefUnwindSafe for PatchedBulkObjectPermissionRequest
impl Send for PatchedBulkObjectPermissionRequest
impl Sync for PatchedBulkObjectPermissionRequest
impl Unpin for PatchedBulkObjectPermissionRequest
impl UnsafeUnpin for PatchedBulkObjectPermissionRequest
impl UnwindSafe for PatchedBulkObjectPermissionRequest
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