#[non_exhaustive]pub struct PermissionAttributes {
pub created: Option<DateTime<Utc>>,
pub description: Option<String>,
pub display_name: Option<String>,
pub display_type: Option<String>,
pub group_name: Option<String>,
pub name: Option<String>,
pub restricted: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes of a permission.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created: Option<DateTime<Utc>>
Creation time of the permission.
description: Option<String>
Description of the permission.
display_name: Option<String>
Displayed name for the permission.
display_type: Option<String>
Display type.
group_name: Option<String>
Name of the permission group.
name: Option<String>
Name of the permission.
restricted: Option<bool>
Whether or not the permission is restricted.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl PermissionAttributes
impl PermissionAttributes
pub fn new() -> PermissionAttributes
pub fn created(self, value: DateTime<Utc>) -> Self
pub fn description(self, value: String) -> Self
pub fn display_name(self, value: String) -> Self
pub fn display_type(self, value: String) -> Self
pub fn group_name(self, value: String) -> Self
pub fn name(self, value: String) -> Self
pub fn restricted(self, value: bool) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for PermissionAttributes
impl Clone for PermissionAttributes
Source§fn clone(&self) -> PermissionAttributes
fn clone(&self) -> PermissionAttributes
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 PermissionAttributes
impl Debug for PermissionAttributes
Source§impl Default for PermissionAttributes
impl Default for PermissionAttributes
Source§impl<'de> Deserialize<'de> for PermissionAttributes
impl<'de> Deserialize<'de> for PermissionAttributes
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 PermissionAttributes
impl PartialEq for PermissionAttributes
Source§impl Serialize for PermissionAttributes
impl Serialize for PermissionAttributes
impl StructuralPartialEq for PermissionAttributes
Auto Trait Implementations§
impl Freeze for PermissionAttributes
impl RefUnwindSafe for PermissionAttributes
impl Send for PermissionAttributes
impl Sync for PermissionAttributes
impl Unpin for PermissionAttributes
impl UnwindSafe for PermissionAttributes
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