pub struct Jws {
pub payload: String,
pub signature: Option<Signature>,
pub signatures: Option<Vec<Signature>>,
}Expand description
A struct to generate and serialize JWS envelopes for DIDComm messages.
Fields§
§payload: Stringbase64 encoded payload of the JWS
signature: Option<Signature>Top-level signature for flat JWS JSON messages.
Will be ignored if signatures is not None
signatures: Option<Vec<Signature>>Pre-recipient signatures for flat JWS JSON messages.
If not None, will be preferred over signature.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Jws
impl<'de> Deserialize<'de> for Jws
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
Auto Trait Implementations§
impl Freeze for Jws
impl RefUnwindSafe for Jws
impl Send for Jws
impl Sync for Jws
impl Unpin for Jws
impl UnsafeUnpin for Jws
impl UnwindSafe for Jws
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