pub struct SignatureParams { /* private fields */ }Expand description
The parsed value of the integrity member of Signature-Input.
Component and parameter order are preserved, because both are part of the signed bytes.
Implementations§
Source§impl SignatureParams
impl SignatureParams
Sourcepub fn new(
created: i64,
nonce: &str,
alg: &str,
) -> Result<Self, SignatureInputError>
pub fn new( created: i64, nonce: &str, alg: &str, ) -> Result<Self, SignatureInputError>
Parameters for a new signature, covering every profile component in signing order.
§Errors
Returns SignatureInputError::InvalidParameter when created is nonpositive or outside
the Structured Fields integer range, or nonce or alg is empty or not printable ASCII.
Sourcepub fn parse(field: &str) -> Result<Self, SignatureInputError>
pub fn parse(field: &str) -> Result<Self, SignatureInputError>
Parses a Signature-Input field value.
§Errors
Returns a SignatureInputError when the field violates Structured Fields or the profile.
Sourcepub fn components(&self) -> &[Component]
pub fn components(&self) -> &[Component]
The covered components, in signed order.
Trait Implementations§
Source§impl Clone for SignatureParams
impl Clone for SignatureParams
Source§impl Debug for SignatureParams
impl Debug for SignatureParams
impl Eq for SignatureParams
Source§impl PartialEq for SignatureParams
impl PartialEq for SignatureParams
impl StructuralPartialEq for SignatureParams
Auto Trait Implementations§
impl Freeze for SignatureParams
impl RefUnwindSafe for SignatureParams
impl Send for SignatureParams
impl Sync for SignatureParams
impl Unpin for SignatureParams
impl UnsafeUnpin for SignatureParams
impl UnwindSafe for SignatureParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.