pub enum PermissionEntry {
PermissionRef(Identifier),
ExtendedPermission {
identifier: Identifier,
scope: Scopes,
},
}
Expand description
An entry for a permission value in a Capability
can be either a raw permission Identifier
or an object that references a permission and extends its scope.
Variants§
PermissionRef(Identifier)
Reference a permission or permission set by identifier.
ExtendedPermission
Reference a permission or permission set by identifier and extends its scope.
Fields
§
identifier: Identifier
Identifier of the permission or permission set.
Implementations§
Source§impl PermissionEntry
impl PermissionEntry
Sourcepub fn identifier(&self) -> &Identifier
pub fn identifier(&self) -> &Identifier
The identifier of the permission referenced in this entry.
Trait Implementations§
Source§impl Clone for PermissionEntry
impl Clone for PermissionEntry
Source§fn clone(&self) -> PermissionEntry
fn clone(&self) -> PermissionEntry
Returns a copy 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 PermissionEntry
impl Debug for PermissionEntry
Source§impl<'de> Deserialize<'de> for PermissionEntry
impl<'de> Deserialize<'de> for PermissionEntry
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 PermissionEntry
impl PartialEq for PermissionEntry
Source§impl Serialize for PermissionEntry
impl Serialize for PermissionEntry
impl StructuralPartialEq for PermissionEntry
Auto Trait Implementations§
impl Freeze for PermissionEntry
impl RefUnwindSafe for PermissionEntry
impl Send for PermissionEntry
impl Sync for PermissionEntry
impl Unpin for PermissionEntry
impl UnwindSafe for PermissionEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)