#[non_exhaustive]pub struct Rule {
pub subject: String,
pub scope: String,
pub role: String,
pub propagate: bool,
}Expand description
Binds a subject to a role at a scope.
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.subject: Stringaccount:<name>, person:<id>, group:<name> or any:signed-in, the last matching
every subject a sign-in or key resolved (never one with no identity). No other
any: name exists.
scope: String*, or <kind>:<id> with the kind among the policy’s scope kinds.
role: StringThe name of a role the policy defines.
propagate: boolWhether it also matches a request that names scope among its ancestors; true
unless configured. * matches every request either way.
Implementations§
Trait Implementations§
Source§impl Describe for Rule
impl Describe for Rule
impl Eq for Rule
impl Fields for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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