Trait ssi_claims::JwsPayload
source · pub trait JwsPayload {
// Required method
fn payload_bytes(&self) -> Cow<'_, [u8]>;
// Provided methods
fn typ(&self) -> Option<&str> { ... }
fn cty(&self) -> Option<&str> { ... }
async fn sign(
&self,
signer: impl JwsSigner,
) -> Result<JwsBuf, SignatureError> { ... }
}
Expand description
JWS payload type.
Any type that can be serialized with a give JWS type.
Required Methods§
fn payload_bytes(&self) -> Cow<'_, [u8]>
Provided Methods§
Object Safety§
This trait is not object safe.