pub struct ArcMessageSignature {
pub instance: u32,
pub algorithm: Algorithm,
pub signature_b64: String,
pub body_hash_b64: String,
pub canon_header: Canon,
pub canon_body: Canon,
pub domain: String,
pub selector: String,
pub signed_headers: Vec<String>,
pub timestamp: Option<u64>,
pub expiration: Option<u64>,
}Expand description
Parsed ARC-Message-Signature (AMS) header value.
Fields§
§instance: u32i= instance number (1..=50).
algorithm: Algorithma= algorithm — rsa-sha256 or ed25519-sha256.
signature_b64: Stringb= base64 signature bytes.
body_hash_b64: Stringbh= base64 body-hash bytes.
canon_header: Canonc= canonicalization: (header, body) modes.
canon_body: Canonsee Self::canon_header.
domain: Stringd= signing domain.
selector: Strings= selector.
signed_headers: Vec<String>h= colon-separated list of signed header names (lowercased).
timestamp: Option<u64>t= timestamp (epoch seconds), optional.
expiration: Option<u64>x= expiration (epoch seconds), optional.
Implementations§
Trait Implementations§
Source§impl Clone for ArcMessageSignature
impl Clone for ArcMessageSignature
Source§fn clone(&self) -> ArcMessageSignature
fn clone(&self) -> ArcMessageSignature
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 moreSource§impl Debug for ArcMessageSignature
impl Debug for ArcMessageSignature
Source§impl PartialEq for ArcMessageSignature
impl PartialEq for ArcMessageSignature
Source§fn eq(&self, other: &ArcMessageSignature) -> bool
fn eq(&self, other: &ArcMessageSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ArcMessageSignature
impl StructuralPartialEq for ArcMessageSignature
Auto Trait Implementations§
impl Freeze for ArcMessageSignature
impl RefUnwindSafe for ArcMessageSignature
impl Send for ArcMessageSignature
impl Sync for ArcMessageSignature
impl Unpin for ArcMessageSignature
impl UnsafeUnpin for ArcMessageSignature
impl UnwindSafe for ArcMessageSignature
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more