pub struct MCardData {
pub uri: String,
pub hash: ContentHash,
pub payload: MCardPayload,
pub metadata: HashMap<String, Value>,
pub author: AgentDid,
pub sequence: u64,
pub g_time: String,
pub mcard_preimage_v1: Option<MCardPreimage>,
}Expand description
Read-only fields of a validated MCard; the owning card cannot be mutated.
Fields§
§uri: StringCanonical URI (e.g., “mcard:workspace/config/settings” or “mcard:chat/message/msg_101”).
hash: ContentHashDigest of the exact content bytes under the algorithm declared in g_time.
payload: MCardPayloadUnderlying data payload.
metadata: HashMap<String, Value>Immutable metadata attributes.
Cryptographic author DID.
sequence: u64Monotonic logical sequence or version counter.
g_time: String§mcard_preimage_v1: Option<MCardPreimage>Trait Implementations§
Source§impl<'de> Deserialize<'de> for MCardData
impl<'de> Deserialize<'de> for MCardData
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 StructuralPartialEq for MCardData
Auto Trait Implementations§
impl Forget for MCardData
impl Freeze for MCardData
impl Move for MCardData
impl RefUnwindSafe for MCardData
impl Send for MCardData
impl Sync for MCardData
impl Unpin for MCardData
impl UnsafeUnpin for MCardData
impl UnwindSafe for MCardData
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