pub struct ExtraUserObjectPermission {
pub id: i32,
pub codename: String,
pub model: String,
pub app_label: String,
pub object_pk: String,
pub name: String,
pub app_label_verbose: String,
pub model_verbose: String,
pub object_description: Option<String>,
}
Expand description
ExtraUserObjectPermission : User permission with additional object-related data
Fields§
§id: i32
§codename: String
§model: String
§app_label: String
§object_pk: String
§name: String
§app_label_verbose: String
Get app label from permission’s model
model_verbose: String
Get model label from permission’s model
object_description: Option<String>
Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object
Implementations§
Trait Implementations§
Source§impl Clone for ExtraUserObjectPermission
impl Clone for ExtraUserObjectPermission
Source§fn clone(&self) -> ExtraUserObjectPermission
fn clone(&self) -> ExtraUserObjectPermission
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 Debug for ExtraUserObjectPermission
impl Debug for ExtraUserObjectPermission
Source§impl Default for ExtraUserObjectPermission
impl Default for ExtraUserObjectPermission
Source§fn default() -> ExtraUserObjectPermission
fn default() -> ExtraUserObjectPermission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtraUserObjectPermission
impl<'de> Deserialize<'de> for ExtraUserObjectPermission
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 ExtraUserObjectPermission
Auto Trait Implementations§
impl Freeze for ExtraUserObjectPermission
impl RefUnwindSafe for ExtraUserObjectPermission
impl Send for ExtraUserObjectPermission
impl Sync for ExtraUserObjectPermission
impl Unpin for ExtraUserObjectPermission
impl UnwindSafe for ExtraUserObjectPermission
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