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>(d: D) -> Result<ScopeRef, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<ScopeRef, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
Source§impl Serialize for ScopeRef
impl Serialize for ScopeRef
Source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.