pub struct PredicateDef {
pub subject_type: Symbol,
pub predicate_name: Symbol,
pub condition: PolicyCondition,
}Expand description
A predicate definition: A User is admin if the user's role equals "admin".
Fields§
§subject_type: SymbolThe type this predicate applies to (e.g., “User”)
predicate_name: SymbolThe predicate name (e.g., “admin”)
condition: PolicyConditionThe condition that must be true
Trait Implementations§
Source§impl Clone for PredicateDef
impl Clone for PredicateDef
Source§fn clone(&self) -> PredicateDef
fn clone(&self) -> PredicateDef
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 moreAuto Trait Implementations§
impl Freeze for PredicateDef
impl RefUnwindSafe for PredicateDef
impl Send for PredicateDef
impl Sync for PredicateDef
impl Unpin for PredicateDef
impl UnwindSafe for PredicateDef
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