pub struct RoleDefinition {
pub name: String,
pub permissions: Vec<String>,
pub resources: Vec<String>,
pub inherits: Vec<String>,
}Expand description
A role with its permission set and resource patterns.
Fields§
§name: StringThe role’s canonical name.
permissions: Vec<String>Permissions granted by this role (must match Permission::name() values).
resources: Vec<String>Glob patterns for resources this role applies to.
inherits: Vec<String>Roles whose permissions this role inherits.
Trait Implementations§
Source§impl Clone for RoleDefinition
impl Clone for RoleDefinition
Source§fn clone(&self) -> RoleDefinition
fn clone(&self) -> RoleDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoleDefinition
impl Debug for RoleDefinition
Source§impl<'de> Deserialize<'de> for RoleDefinition
impl<'de> Deserialize<'de> for RoleDefinition
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
Auto Trait Implementations§
impl Freeze for RoleDefinition
impl RefUnwindSafe for RoleDefinition
impl Send for RoleDefinition
impl Sync for RoleDefinition
impl Unpin for RoleDefinition
impl UnsafeUnpin for RoleDefinition
impl UnwindSafe for RoleDefinition
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