pub struct PermissionData {
pub badges: Option<Vec<String>>,
pub max: Option<i32>,
pub max_favorite_groups: Option<HashMap<String, i32>>,
pub max_favorites_per_group: Option<HashMap<String, i32>>,
pub tags: Option<Vec<String>>,
}Expand description
PermissionData : Specific values afforded the user by this permission
Fields§
§badges: Option<Vec<String>>Badges afforded the user by this permission
max: Option<i32>Maximum value afforded the user by this permission
max_favorite_groups: Option<HashMap<String, i32>>Maximum favorite groups afforded the user by this permission
max_favorites_per_group: Option<HashMap<String, i32>>Maximum favorites per group afforded the user by this permission
Tags afforded the user by this permission
Implementations§
Source§impl PermissionData
impl PermissionData
Sourcepub fn new() -> PermissionData
pub fn new() -> PermissionData
Specific values afforded the user by this permission
Trait Implementations§
Source§impl Clone for PermissionData
impl Clone for PermissionData
Source§fn clone(&self) -> PermissionData
fn clone(&self) -> PermissionData
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 PermissionData
impl Debug for PermissionData
Source§impl Default for PermissionData
impl Default for PermissionData
Source§fn default() -> PermissionData
fn default() -> PermissionData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionData
impl<'de> Deserialize<'de> for PermissionData
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 PermissionData
impl PartialEq for PermissionData
Source§impl Serialize for PermissionData
impl Serialize for PermissionData
impl StructuralPartialEq for PermissionData
Auto Trait Implementations§
impl Freeze for PermissionData
impl RefUnwindSafe for PermissionData
impl Send for PermissionData
impl Sync for PermissionData
impl Unpin for PermissionData
impl UnwindSafe for PermissionData
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