pub struct CompactSerializedParts<'a> {
    pub header: &'a [u8],
    pub payload: &'a [u8],
    pub signature: &'a [u8],
}
Expand description

The individual (still encoded) parts of a JWS Compact Serialized message.

Fields

header: &'a [u8]payload: &'a [u8]signature: &'a [u8]

Implementations

Decode a JWS Compact Serialization message with signature from a byte slice.

A JWS Compact message consists of a base64-url encoded header and payload and signature, separated by period ‘.’ characters.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.