pub enum MarshalingAlgorithm {
Asn1,
Jws,
}
Variants§
Asn1
The default, used by OpenSSL and X.509
Jws
The version used by JWS (and thus for JWTs). Selecting this will also change the output encoding to URL-safe Base64 encoding instead of standard Base64-encoding.
Trait Implementations§
source§impl Clone for MarshalingAlgorithm
impl Clone for MarshalingAlgorithm
source§fn clone(&self) -> MarshalingAlgorithm
fn clone(&self) -> MarshalingAlgorithm
Returns a copy 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 MarshalingAlgorithm
impl Debug for MarshalingAlgorithm
source§impl<'de> Deserialize<'de> for MarshalingAlgorithm
impl<'de> Deserialize<'de> for MarshalingAlgorithm
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
source§impl Serialize for MarshalingAlgorithm
impl Serialize for MarshalingAlgorithm
impl Copy for MarshalingAlgorithm
Auto Trait Implementations§
impl Freeze for MarshalingAlgorithm
impl RefUnwindSafe for MarshalingAlgorithm
impl Send for MarshalingAlgorithm
impl Sync for MarshalingAlgorithm
impl Unpin for MarshalingAlgorithm
impl UnwindSafe for MarshalingAlgorithm
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)