pub enum UsersetExpression {
This,
ComputedUserset {
relation: RelationName,
},
TupleToUserset {
tupleset_relation: RelationName,
computed_userset_relation: RelationName,
},
Union(Vec<UsersetExpression>),
Intersection(Vec<UsersetExpression>),
Exclusion {
base: Box<UsersetExpression>,
exclude: Box<UsersetExpression>,
},
}Expand description
Typed userset expression.
Variants§
This
Direct relationships stored on this object and relation.
ComputedUserset
A relation on the same object.
Fields
§
relation: RelationNameReferenced relation.
TupleToUserset
A relation reached through userset subjects on another relation.
Fields
§
tupleset_relation: RelationNameRelation containing intermediate userset subjects.
§
computed_userset_relation: RelationNameRelation to evaluate on each intermediate object.
Union(Vec<UsersetExpression>)
Union of child expressions.
Intersection(Vec<UsersetExpression>)
Intersection of child expressions.
Exclusion
Exclusion of one expression from another.
Fields
§
base: Box<UsersetExpression>Base expression.
§
exclude: Box<UsersetExpression>Expression to subtract.
Trait Implementations§
Source§impl Clone for UsersetExpression
impl Clone for UsersetExpression
Source§fn clone(&self) -> UsersetExpression
fn clone(&self) -> UsersetExpression
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 UsersetExpression
impl Debug for UsersetExpression
impl Eq for UsersetExpression
Source§impl PartialEq for UsersetExpression
impl PartialEq for UsersetExpression
impl StructuralPartialEq for UsersetExpression
Auto Trait Implementations§
impl Freeze for UsersetExpression
impl RefUnwindSafe for UsersetExpression
impl Send for UsersetExpression
impl Sync for UsersetExpression
impl Unpin for UsersetExpression
impl UnsafeUnpin for UsersetExpression
impl UnwindSafe for UsersetExpression
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