pub struct SchemaDigest(/* private fields */);Expand description
Deterministic SHA-256 digest (lowercase hex) of a tool’s full JSON schema.
The digest hashes a canonical structural encoding — explicit type tags,
length framing, and lexicographically sorted object keys — computed
iteratively. It is therefore independent of serde_json’s preserve_order
feature and map insertion order, never allocates a serialized copy of the
schema, performs no fallible serialization (expect-free on external
data), and cannot overflow the stack on deeply nested values.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaDigest
impl Clone for SchemaDigest
Source§impl Debug for SchemaDigest
impl Debug for SchemaDigest
impl Eq for SchemaDigest
Source§impl Hash for SchemaDigest
impl Hash for SchemaDigest
Source§impl PartialEq for SchemaDigest
impl PartialEq for SchemaDigest
Source§impl Serialize for SchemaDigest
impl Serialize for SchemaDigest
impl StructuralPartialEq for SchemaDigest
Auto Trait Implementations§
impl Freeze for SchemaDigest
impl RefUnwindSafe for SchemaDigest
impl Send for SchemaDigest
impl Sync for SchemaDigest
impl Unpin for SchemaDigest
impl UnsafeUnpin for SchemaDigest
impl UnwindSafe for SchemaDigest
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§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.