pub struct Context {
pub entity_jwt: String,
pub host_jwt: String,
pub application: Application,
}
Expand description
The request context for retrieving a secret
Fields§
§entity_jwt: String
The component or provider’s signed JWT.
host_jwt: String
The host’s signed JWT.
application: Application
Information about the application that the entity belongs to.
Implementations§
source§impl Context
impl Context
sourcepub fn valid_claims(&self) -> Result<(), ContextValidationError>
pub fn valid_claims(&self) -> Result<(), ContextValidationError>
Validates that the underlying claims embedded in the Context’s JWTs are valid.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Context
impl<'de> Deserialize<'de> for Context
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
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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