Enum ReadPredicate
pub enum ReadPredicate {
AuthNotNull,
AuthIsNull,
HasRole {
role: &'static str,
},
InTenant {
tenant_id: &'static str,
},
AuthFieldEqLiteral {
auth_field: &'static str,
value: PolicyLiteral,
},
AuthFieldNeLiteral {
auth_field: &'static str,
value: PolicyLiteral,
},
FieldIsTrue {
column: &'static str,
},
FieldEqLiteral {
column: &'static str,
value: PolicyLiteral,
},
FieldNeLiteral {
column: &'static str,
value: PolicyLiteral,
},
FieldEqAuth {
column: &'static str,
auth_field: &'static str,
},
FieldNeAuth {
column: &'static str,
auth_field: &'static str,
},
Relation {
quantifier: RelationQuantifier,
parent_table: &'static str,
parent_column: &'static str,
related_table: &'static str,
related_column: &'static str,
expr: &'static PolicyExpr,
},
}Variants§
AuthNotNull
AuthIsNull
HasRole
InTenant
AuthFieldEqLiteral
AuthFieldNeLiteral
FieldIsTrue
FieldEqLiteral
FieldNeLiteral
FieldEqAuth
FieldNeAuth
Relation
Trait Implementations§
§impl Clone for ReadPredicate
impl Clone for ReadPredicate
§fn clone(&self) -> ReadPredicate
fn clone(&self) -> ReadPredicate
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 more§impl Debug for ReadPredicate
impl Debug for ReadPredicate
§impl PartialEq for ReadPredicate
impl PartialEq for ReadPredicate
impl Copy for ReadPredicate
impl Eq for ReadPredicate
impl StructuralPartialEq for ReadPredicate
Auto Trait Implementations§
impl Freeze for ReadPredicate
impl RefUnwindSafe for ReadPredicate
impl Send for ReadPredicate
impl Sync for ReadPredicate
impl Unpin for ReadPredicate
impl UnsafeUnpin for ReadPredicate
impl UnwindSafe for ReadPredicate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more