pub struct Audience(/* private fields */);Expand description
An OAuth2 / OIDC audience (aud) value.
Per UT-S01 D1, the audience is per-backend (Auth0 “API identifier”
convention, e.g. plexus:trak) so a token minted for one backend
cannot be replayed against another. A deployment that wants one shared
audience configures it explicitly — that is an opt-down, not the
default.
Validated newtype in the style of the capability-advertisement types
(ClientId, CookieName, …): public try_new, transparent serde,
JsonSchema for IR/codegen integration.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Audience
impl<'de> Deserialize<'de> for Audience
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 Eq for Audience
Source§impl JsonSchema for Audience
impl JsonSchema for Audience
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Audience
Auto Trait Implementations§
impl Forget for Audience
impl Freeze for Audience
impl Move for Audience
impl RefUnwindSafe for Audience
impl Send for Audience
impl Sync for Audience
impl Unpin for Audience
impl UnsafeUnpin for Audience
impl UnwindSafe for Audience
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