pub enum ExpandedUserset {
User(String),
Userset(Object, Relation),
Union(Vec<ExpandedUserset>),
Intersection(Vec<ExpandedUserset>),
Exclusion {
base: Box<ExpandedUserset>,
exclude: Box<ExpandedUserset>,
},
}Expand description
Represents the result of an expand operation, detailing the effective userset.
Variants§
User(String)
A specific user who has the permission.
Userset(Object, Relation)
A reference to another userset that contributes to the permission.
Union(Vec<ExpandedUserset>)
The union of multiple expanded usersets.
Intersection(Vec<ExpandedUserset>)
The intersection of multiple expanded usersets.
Exclusion
The exclusion of one expanded userset from another.
Fields
§
base: Box<ExpandedUserset>Base expanded userset.
§
exclude: Box<ExpandedUserset>Expanded userset to subtract from the base.
Trait Implementations§
Source§impl Clone for ExpandedUserset
impl Clone for ExpandedUserset
Source§fn clone(&self) -> ExpandedUserset
fn clone(&self) -> ExpandedUserset
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 ExpandedUserset
impl Debug for ExpandedUserset
Source§impl<'de> Deserialize<'de> for ExpandedUserset
impl<'de> Deserialize<'de> for ExpandedUserset
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 ExpandedUserset
impl PartialEq for ExpandedUserset
Source§fn eq(&self, other: &ExpandedUserset) -> bool
fn eq(&self, other: &ExpandedUserset) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExpandedUserset
impl Serialize for ExpandedUserset
impl Eq for ExpandedUserset
impl StructuralPartialEq for ExpandedUserset
Auto Trait Implementations§
impl Freeze for ExpandedUserset
impl RefUnwindSafe for ExpandedUserset
impl Send for ExpandedUserset
impl Sync for ExpandedUserset
impl Unpin for ExpandedUserset
impl UnsafeUnpin for ExpandedUserset
impl UnwindSafe for ExpandedUserset
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