pub struct HeaderOptions {
pub content_type: Option<String>,
pub signature_type: Option<String>,
}Expand description
Options for header creation when constructing a token.
Fields§
§content_type: Option<String>The contents of the content type (cty) field in the JWT header. If set
to None, this field is not present on the serialized JWT.
signature_type: Option<String>The contents of the signature type (typ) field in the JWT header. If
set to None, the serialized JWT’s typ field will contain the string
“JWT”.
Trait Implementations§
Source§impl Clone for HeaderOptions
impl Clone for HeaderOptions
Source§fn clone(&self) -> HeaderOptions
fn clone(&self) -> HeaderOptions
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 moreSource§impl Debug for HeaderOptions
impl Debug for HeaderOptions
Source§impl Default for HeaderOptions
impl Default for HeaderOptions
Source§fn default() -> HeaderOptions
fn default() -> HeaderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HeaderOptions
impl RefUnwindSafe for HeaderOptions
impl Send for HeaderOptions
impl Sync for HeaderOptions
impl Unpin for HeaderOptions
impl UnwindSafe for HeaderOptions
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