pub struct JWETokenMetadata { /* private fields */ }Expand description
JWE token metadata extracted from the header (before decryption).
Implementations§
Source§impl JWETokenMetadata
impl JWETokenMetadata
Sourcepub fn encryption(&self) -> &str
pub fn encryption(&self) -> &str
The content encryption algorithm.
Sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The content type (if present).
Trait Implementations§
Source§impl Clone for JWETokenMetadata
impl Clone for JWETokenMetadata
Source§fn clone(&self) -> JWETokenMetadata
fn clone(&self) -> JWETokenMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 JWETokenMetadata
impl RefUnwindSafe for JWETokenMetadata
impl Send for JWETokenMetadata
impl Sync for JWETokenMetadata
impl Unpin for JWETokenMetadata
impl UnwindSafe for JWETokenMetadata
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