pub struct CardDigest {
pub algorithm: CardDigestAlgorithm,
pub value: String,
}Expand description
Semantic digest of a strictly parsed and schema-validated JSON MCP card. Both URL-backed and embedded cards are canonicalised with RFC 8785 JSON Canonicalization Scheme, encoded as UTF-8, and hashed with SHA-256.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§algorithm: CardDigestAlgorithmDigest algorithm and canonical representation
value: StringSHA-256 digest of the RFC 8785 canonical UTF-8 bytes, encoded as exactly 64 lowercase hexadecimal characters.
Trait Implementations§
Source§impl Clone for CardDigest
impl Clone for CardDigest
Source§fn clone(&self) -> CardDigest
fn clone(&self) -> CardDigest
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 CardDigest
impl Debug for CardDigest
Source§impl Default for CardDigest
impl Default for CardDigest
Source§fn default() -> CardDigest
fn default() -> CardDigest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CardDigest
impl<'de> Deserialize<'de> for CardDigest
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
Auto Trait Implementations§
impl Freeze for CardDigest
impl RefUnwindSafe for CardDigest
impl Send for CardDigest
impl Sync for CardDigest
impl Unpin for CardDigest
impl UnsafeUnpin for CardDigest
impl UnwindSafe for CardDigest
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