pub struct IssueConfig { /* private fields */ }Implementations§
Source§impl IssueConfig
impl IssueConfig
Sourcepub fn access_token(
issuer: impl Into<String>,
audience: impl Into<String>,
kid: impl Into<String>,
) -> Self
pub fn access_token( issuer: impl Into<String>, audience: impl Into<String>, kid: impl Into<String>, ) -> Self
Build the canonical access-token config: at+jwt typ, access
cat, single-audience array initialized from the supplied value.
Multi-aud tokens add audiences via with_audiences.
Sourcepub fn with_audiences(self, audiences: Vec<String>) -> Self
pub fn with_audiences(self, audiences: Vec<String>) -> Self
Replace the audience list. Engine emits the array form (M22) when
audiences.len() > 1, single string (M21) when length is 1.
Empty audience list is a logic error — the engine refuses to
emit such a token; M20 would reject it on the verify side.
Trait Implementations§
Source§impl Clone for IssueConfig
impl Clone for IssueConfig
Source§fn clone(&self) -> IssueConfig
fn clone(&self) -> IssueConfig
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 IssueConfig
impl RefUnwindSafe for IssueConfig
impl Send for IssueConfig
impl Sync for IssueConfig
impl Unpin for IssueConfig
impl UnsafeUnpin for IssueConfig
impl UnwindSafe for IssueConfig
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