Expand description
A compact JWS message with header and payload, but without signature.
The signature is left off because the signature can only be computed from (and verified for) a serialized message, whereas this struct represents a mostly decoded message (the payload is still raw bytes).
You can call decode_and_verify
to decode and verify a message.
Alternatively, you can call split_encoded_parts
, decode the parts and then use a Verifier
manually.
The latter allows you to access the decoded message, even if it’s signature is invalid.
Fields
header: HeaderMap
payload: Vec<u8>
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more