pub enum Constraint {
OrConstraint(CombinationConstraint),
AndConstraint(CombinationConstraint),
RoleConstraint(RoleConstraint),
ForbiddenConstraint(ForbiddenConstraint),
}
Expand description
Enum of the constraint type within the GAT_AUTH_RULE result data
§parameters
Role - The final constraint And - Combine multiple constraints all of them must be met Or - Combine multiple constraints any of them must be met Forbidden - action is forbidden
Variants§
OrConstraint(CombinationConstraint)
AndConstraint(CombinationConstraint)
RoleConstraint(RoleConstraint)
ForbiddenConstraint(ForbiddenConstraint)
Trait Implementations§
source§impl Clone for Constraint
impl Clone for Constraint
source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
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 Constraint
impl Debug for Constraint
source§impl<'de> Deserialize<'de> for Constraint
impl<'de> Deserialize<'de> for Constraint
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 Constraint
impl PartialEq for Constraint
source§fn eq(&self, other: &Constraint) -> bool
fn eq(&self, other: &Constraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Constraint
impl Serialize for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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