pub struct SignParams<'a> {
pub content_type: ContentType,
pub payload: &'a [u8],
pub claims: Option<Claims>,
pub external_aad: ExternalAad,
}Expand description
Parameters for build_signed.
Fields§
§content_type: ContentTypeThe payload content type (protected header 3).
payload: &'a [u8]The payload to sign (always embedded; detached payloads are not part of the v1 profile).
claims: Option<Claims>Optional claims for sign-only messages.
external_aad: ExternalAadThe Sig_structure external AAD.
Trait Implementations§
Source§impl<'a> Clone for SignParams<'a>
impl<'a> Clone for SignParams<'a>
Source§fn clone(&self) -> SignParams<'a>
fn clone(&self) -> SignParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SignParams<'a>
impl<'a> RefUnwindSafe for SignParams<'a>
impl<'a> Send for SignParams<'a>
impl<'a> Sync for SignParams<'a>
impl<'a> Unpin for SignParams<'a>
impl<'a> UnsafeUnpin for SignParams<'a>
impl<'a> UnwindSafe for SignParams<'a>
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