pub struct EffectiveRights(/* private fields */);Expand description
The rights one subject holds on one resource, closed under implication.
Implication (§4.2): own ⇒ maintain ⇒ commit on the same resource, and
ns.admin ⇒ create plus own on every repository in the namespace. The
VTC evaluates this before projecting; it is repeated here so an adapter
handed a partial set (say, own alone) still maps it correctly.
Implementations§
Source§impl EffectiveRights
impl EffectiveRights
Sourcepub const NONE: EffectiveRights
pub const NONE: EffectiveRights
No rights at all.
Sourcepub fn from_granted(granted: impl IntoIterator<Item = Right>) -> Self
pub fn from_granted(granted: impl IntoIterator<Item = Right>) -> Self
The closure of granted under implication.
Trait Implementations§
Source§impl Clone for EffectiveRights
impl Clone for EffectiveRights
impl Copy for EffectiveRights
Source§impl Debug for EffectiveRights
impl Debug for EffectiveRights
Source§impl Default for EffectiveRights
impl Default for EffectiveRights
Source§impl<'de> Deserialize<'de> for EffectiveRights
impl<'de> Deserialize<'de> for EffectiveRights
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EffectiveRights
Source§impl Hash for EffectiveRights
impl Hash for EffectiveRights
Source§impl PartialEq for EffectiveRights
impl PartialEq for EffectiveRights
Source§impl Serialize for EffectiveRights
impl Serialize for EffectiveRights
impl StructuralPartialEq for EffectiveRights
Auto Trait Implementations§
impl Freeze for EffectiveRights
impl RefUnwindSafe for EffectiveRights
impl Send for EffectiveRights
impl Sync for EffectiveRights
impl Unpin for EffectiveRights
impl UnsafeUnpin for EffectiveRights
impl UnwindSafe for EffectiveRights
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