pub struct Expectations {
pub issuer: String,
pub audience: String,
}Expand description
Per-deployment expectations folded into the verifier at construction.
issuer is the PAS instance URL (accounts.ppoppo.com in
production); audience is the consumer’s OAuth client_id. Both
are static per-deployment — multi-tenant consumers instantiate
multiple verifiers, never rotate Expectations on the per-call
hot path.
Held inside [super::PasJwtVerifier] (and optionally inside
MemoryBearerVerifier) so the BearerVerifier::verify signature
stays one-parameter — the port is as small as it can be while
still doing meaningful work.
Fields§
§issuer: String§audience: StringImplementations§
Trait Implementations§
Source§impl Clone for Expectations
impl Clone for Expectations
Source§fn clone(&self) -> Expectations
fn clone(&self) -> Expectations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Expectations
impl RefUnwindSafe for Expectations
impl Send for Expectations
impl Sync for Expectations
impl Unpin for Expectations
impl UnsafeUnpin for Expectations
impl UnwindSafe for Expectations
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