pub struct ExtraRoleObjectPermission {
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
ExtraRoleObjectPermission : 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 ExtraRoleObjectPermission
impl Clone for ExtraRoleObjectPermission
Source§fn clone(&self) -> ExtraRoleObjectPermission
fn clone(&self) -> ExtraRoleObjectPermission
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 ExtraRoleObjectPermission
impl Debug for ExtraRoleObjectPermission
Source§impl Default for ExtraRoleObjectPermission
impl Default for ExtraRoleObjectPermission
Source§fn default() -> ExtraRoleObjectPermission
fn default() -> ExtraRoleObjectPermission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtraRoleObjectPermission
impl<'de> Deserialize<'de> for ExtraRoleObjectPermission
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 ExtraRoleObjectPermission
Auto Trait Implementations§
impl Freeze for ExtraRoleObjectPermission
impl RefUnwindSafe for ExtraRoleObjectPermission
impl Send for ExtraRoleObjectPermission
impl Sync for ExtraRoleObjectPermission
impl Unpin for ExtraRoleObjectPermission
impl UnwindSafe for ExtraRoleObjectPermission
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