pub struct PrecomputedAlgorithmOnlyHeader(pub AlgorithmType);Expand description
A header that only contains the algorithm type. The ToBase64
implementation uses static strings for faster serialization.
Tuple Fields§
§0: AlgorithmTypeTrait Implementations§
Source§impl JoseHeader for PrecomputedAlgorithmOnlyHeader
impl JoseHeader for PrecomputedAlgorithmOnlyHeader
fn algorithm_type(&self) -> AlgorithmType
fn key_id(&self) -> Option<&str>
fn type_(&self) -> Option<HeaderType>
fn content_type(&self) -> Option<HeaderContentType>
Auto Trait Implementations§
impl Freeze for PrecomputedAlgorithmOnlyHeader
impl RefUnwindSafe for PrecomputedAlgorithmOnlyHeader
impl Send for PrecomputedAlgorithmOnlyHeader
impl Sync for PrecomputedAlgorithmOnlyHeader
impl Unpin for PrecomputedAlgorithmOnlyHeader
impl UnsafeUnpin for PrecomputedAlgorithmOnlyHeader
impl UnwindSafe for PrecomputedAlgorithmOnlyHeader
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