pub struct ResolvedHostedCredential {
pub token: Option<AuthToken>,
pub proof_key_pem: Option<String>,
pub subject: Option<String>,
pub credential_id: Option<String>,
pub expires_at: Option<String>,
pub source: CredentialSource,
/* private fields */
}Expand description
A credential resolved by the single hosted-auth precedence. Fully describes the selected bearer so callers never re-read env/keystore themselves.
Fields§
§token: Option<AuthToken>Bearer token, absent when unauthenticated.
proof_key_pem: Option<String>Device proof key PEM bound to token, when the source carries one.
subject: Option<String>Authenticated subject.
credential_id: Option<String>Authority credential id, when present (rotation anchor).
expires_at: Option<String>RFC 3339 expiry, when the credential carries one.
source: CredentialSourceWhich mechanism produced this credential.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedHostedCredential
impl RefUnwindSafe for ResolvedHostedCredential
impl Send for ResolvedHostedCredential
impl Sync for ResolvedHostedCredential
impl Unpin for ResolvedHostedCredential
impl UnsafeUnpin for ResolvedHostedCredential
impl UnwindSafe for ResolvedHostedCredential
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request