pub enum ScopeRef {
Everywhere,
Named(String),
}Expand description
Where a role is held: everywhere (*) or one named scope (MENGER).
What a name means — a shortcode, a tenant, a project — is the service’s;
the gate only compares names and asks Resolve::chain how they nest.
On the wire, a plain string: "*" or the name.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScopeRef
impl<'de> Deserialize<'de> for ScopeRef
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 ScopeRef
Source§impl Ord for ScopeRef
impl Ord for ScopeRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ScopeRef
impl PartialOrd for ScopeRef
impl StructuralPartialEq for ScopeRef
Auto Trait Implementations§
impl Freeze for ScopeRef
impl RefUnwindSafe for ScopeRef
impl Send for ScopeRef
impl Sync for ScopeRef
impl Unpin for ScopeRef
impl UnsafeUnpin for ScopeRef
impl UnwindSafe for ScopeRef
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