pub struct SignaturePresence {
pub algorithm: Option<String>,
pub key_id: Option<String>,
pub signer_count: usize,
}Expand description
Structural record that a JSF (JSON Signature Format) signature object was present, and what it names.
PRESENCE ONLY: the signature bytes are neither retained nor verified.
Consumers must treat this as EvidenceLevel::SignaturePresent at most.
Fields§
§algorithm: Option<String>Signature algorithm named by the JSF object (e.g. “ES256”), when the object (or its first signer) declares one.
key_id: Option<String>keyId named by the JSF object (or its first signer), when present.
signer_count: usizeNumber of signers: 1 for the single-signature JSF form, the array
length for the signers/chain multi-signature forms.
Implementations§
Trait Implementations§
Source§impl Clone for SignaturePresence
impl Clone for SignaturePresence
Source§fn clone(&self) -> SignaturePresence
fn clone(&self) -> SignaturePresence
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 SignaturePresence
impl Debug for SignaturePresence
Source§impl Default for SignaturePresence
impl Default for SignaturePresence
Source§fn default() -> SignaturePresence
fn default() -> SignaturePresence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SignaturePresence
impl<'de> Deserialize<'de> for SignaturePresence
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
impl Eq for SignaturePresence
Source§impl PartialEq for SignaturePresence
impl PartialEq for SignaturePresence
Source§impl Serialize for SignaturePresence
impl Serialize for SignaturePresence
impl StructuralPartialEq for SignaturePresence
Auto Trait Implementations§
impl Freeze for SignaturePresence
impl RefUnwindSafe for SignaturePresence
impl Send for SignaturePresence
impl Sync for SignaturePresence
impl Unpin for SignaturePresence
impl UnsafeUnpin for SignaturePresence
impl UnwindSafe for SignaturePresence
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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