#[non_exhaustive]pub enum ClientTrustLevel {
FirstParty,
ThirdParty,
Internal,
Custom(String),
}Expand description
Trust classification for the OAuth client / gateway that brokered the request. Distinct from the user’s subject identity — the same human can connect through a first-party browser flow or a third-party agent, and policies often want to distinguish them.
Custom(String) lets operators carry a finer-grained vocabulary
(e.g. "partner-tier-A") without forking the type. The enum is
#[non_exhaustive] so new well-known variants can be added later
without breaking external matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FirstParty
First-party clients operated by the same org as this gateway.
ThirdParty
External third-party clients, integrated but not operated by us.
Internal
Internal infrastructure clients (control plane, ops tooling).
Custom(String)
Operator-defined trust level — string carried verbatim into policy. Lookups by value (Hash + Eq) work as long as both sides construct identical strings.
Trait Implementations§
Source§impl Clone for ClientTrustLevel
impl Clone for ClientTrustLevel
Source§fn clone(&self) -> ClientTrustLevel
fn clone(&self) -> ClientTrustLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientTrustLevel
impl Debug for ClientTrustLevel
Source§impl Default for ClientTrustLevel
impl Default for ClientTrustLevel
Source§impl<'de> Deserialize<'de> for ClientTrustLevel
impl<'de> Deserialize<'de> for ClientTrustLevel
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>,
impl Eq for ClientTrustLevel
Source§impl Hash for ClientTrustLevel
impl Hash for ClientTrustLevel
Source§impl PartialEq for ClientTrustLevel
impl PartialEq for ClientTrustLevel
Source§impl Serialize for ClientTrustLevel
impl Serialize for ClientTrustLevel
impl StructuralPartialEq for ClientTrustLevel
Auto Trait Implementations§
impl Freeze for ClientTrustLevel
impl RefUnwindSafe for ClientTrustLevel
impl Send for ClientTrustLevel
impl Sync for ClientTrustLevel
impl Unpin for ClientTrustLevel
impl UnsafeUnpin for ClientTrustLevel
impl UnwindSafe for ClientTrustLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.