#[non_exhaustive]pub struct Permission {
pub name: String,
pub protection_level: String,
}Expand description
A <permission> the app declares.
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.name: StringThe permission name.
protection_level: String|-joined level and flags, e.g. signature|privileged.
Trait Implementations§
Source§impl Clone for Permission
impl Clone for Permission
Source§impl Debug for Permission
impl Debug for Permission
Source§impl Default for Permission
impl Default for Permission
Source§impl PartialEq for Permission
impl PartialEq for Permission
impl StructuralPartialEq for Permission
Auto Trait Implementations§
impl Forget for Permission
impl Freeze for Permission
impl Move for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnsafeUnpin for Permission
impl UnwindSafe for Permission
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