pub struct DigestMetadata {
pub algorithm: String,
pub canonicalization_profile: String,
pub schema_id: String,
pub schema_version: String,
pub domain_separator: String,
}Expand description
Identity context cryptographically bound into a content digest.
Fields§
§algorithm: StringHash algorithm.
canonicalization_profile: StringCanonicalization algorithm/profile.
schema_id: StringSchema identifier for the hashed value.
schema_version: StringSchema version for the hashed value.
domain_separator: StringDomain separator preventing cross-protocol reuse.
Trait Implementations§
Source§impl Clone for DigestMetadata
impl Clone for DigestMetadata
Source§fn clone(&self) -> DigestMetadata
fn clone(&self) -> DigestMetadata
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 DigestMetadata
impl Debug for DigestMetadata
Source§impl<'de> Deserialize<'de> for DigestMetadata
impl<'de> Deserialize<'de> for DigestMetadata
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 DigestMetadata
Source§impl Hash for DigestMetadata
impl Hash for DigestMetadata
Source§impl JsonSchema for DigestMetadata
impl JsonSchema for DigestMetadata
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for DigestMetadata
impl Ord for DigestMetadata
Source§fn cmp(&self, other: &DigestMetadata) -> Ordering
fn cmp(&self, other: &DigestMetadata) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DigestMetadata
impl PartialEq for DigestMetadata
Source§impl PartialOrd for DigestMetadata
impl PartialOrd for DigestMetadata
Source§impl Serialize for DigestMetadata
impl Serialize for DigestMetadata
impl StructuralPartialEq for DigestMetadata
Auto Trait Implementations§
impl Freeze for DigestMetadata
impl RefUnwindSafe for DigestMetadata
impl Send for DigestMetadata
impl Sync for DigestMetadata
impl Unpin for DigestMetadata
impl UnsafeUnpin for DigestMetadata
impl UnwindSafe for DigestMetadata
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