Skip to main content

Identified

Trait Identified 

Source
pub trait Identified: Document {
    type Id;

    // Provided method
    fn id(&self) -> Result<Self::Id, CanonicalError> { ... }
}
Expand description

A document whose identity is the tagged digest of its canonical bytes.

Required Associated Types§

Provided Methods§

Source

fn id(&self) -> Result<Self::Id, CanonicalError>

sha256(SCHEMA || 0x00 || canonical bytes) (spec 002, 3.3.2).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§