pub enum Azp {
RootProvider,
Provider(Uuid),
AccessKey(Uuid),
}Expand description
The Authorized Party (azp) claim indicates the type of credential that was used to federate the token.
OIDC indicates that the token was federated from an OIDC provider.
If an ID is also provided, this indicates that the token was federated from a specific provider, otherwise it was federated from the root provider.
§Examples
| Value | Description |
|---|---|
OIDC | Federated from the root provider. |
| `OIDC | 123e4567-e89b-12d3-a456-426614174000` |
| `CSAK | NWMLYZSTECEIGLDL` |
Variants§
RootProvider
Provider(Uuid)
The OIDC provider ID used when federating a 3rd party token.
AccessKey(Uuid)
The Access Key ID used when federating a token from an Access Key.
Implementations§
Source§impl Azp
impl Azp
Sourcepub fn is_root_provider(&self) -> bool
pub fn is_root_provider(&self) -> bool
Returns true if the azp is the root provider.
Sourcepub fn is_provider(&self) -> bool
pub fn is_provider(&self) -> bool
Returns true if the azp is a provider with a specific ID.
Sourcepub fn is_access_key(&self) -> bool
pub fn is_access_key(&self) -> bool
Returns true if the azp is an access key.
Trait Implementations§
impl Copy for Azp
Source§impl<'de> Deserialize<'de> for Azp
impl<'de> Deserialize<'de> for Azp
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
impl StructuralPartialEq for Azp
Auto Trait Implementations§
impl Freeze for Azp
impl RefUnwindSafe for Azp
impl Send for Azp
impl Sync for Azp
impl Unpin for Azp
impl UnsafeUnpin for Azp
impl UnwindSafe for Azp
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
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more