pub struct UserPermission {
pub id: Option<String>,
pub key: Option<String>,
pub name: Option<String>,
pub type: Option<Type>,
pub description: Option<String>,
pub have_permission: Option<bool>,
pub deprecated_key: Option<bool>,
}
Expand description
UserPermission : Details of a permission and its availability to a user.
Fields§
§id: Option<String>
The ID of the permission. Either id
or key
must be specified. Use Get all permissions to get the list of permissions.
key: Option<String>
The key of the permission. Either id
or key
must be specified. Use Get all permissions to get the list of permissions.
name: Option<String>
The name of the permission.
type: Option<Type>
The type of the permission.
description: Option<String>
The description of the permission.
have_permission: Option<bool>
Whether the permission is available to the user in the queried context.
deprecated_key: Option<bool>
Indicate whether the permission key is deprecated. Note that deprecated keys cannot be used in the permissions parameter of Get my permissions. Deprecated keys are not returned by Get all permissions.
Implementations§
Source§impl UserPermission
impl UserPermission
Sourcepub fn new() -> UserPermission
pub fn new() -> UserPermission
Details of a permission and its availability to a user.
Trait Implementations§
Source§impl Clone for UserPermission
impl Clone for UserPermission
Source§fn clone(&self) -> UserPermission
fn clone(&self) -> UserPermission
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 UserPermission
impl Debug for UserPermission
Source§impl Default for UserPermission
impl Default for UserPermission
Source§fn default() -> UserPermission
fn default() -> UserPermission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserPermission
impl<'de> Deserialize<'de> for UserPermission
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 UserPermission
impl PartialEq for UserPermission
Source§impl Serialize for UserPermission
impl Serialize for UserPermission
impl StructuralPartialEq for UserPermission
Auto Trait Implementations§
impl Freeze for UserPermission
impl RefUnwindSafe for UserPermission
impl Send for UserPermission
impl Sync for UserPermission
impl Unpin for UserPermission
impl UnwindSafe for UserPermission
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