Struct taple_core::Metadata
source · pub struct Metadata {
pub namespace: String,
pub subject_id: DigestIdentifier,
pub governance_id: DigestIdentifier,
pub governance_version: u64,
pub schema_id: String,
}
Expand description
A struct representing the metadata of a TAPLE event.
Fields§
§namespace: String
The namespace of the event.
subject_id: DigestIdentifier
The identifier of the subject of the event.
governance_id: DigestIdentifier
The identifier of the governance contract.
governance_version: u64
The version of the governance contract.
schema_id: String
The identifier of the schema used to validate the event.
Trait Implementations§
source§impl BorshDeserialize for Metadatawhere
String: BorshDeserialize,
DigestIdentifier: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for Metadatawhere String: BorshDeserialize, DigestIdentifier: BorshDeserialize, u64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for Metadatawhere
String: BorshSerialize,
DigestIdentifier: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for Metadatawhere String: BorshSerialize, DigestIdentifier: BorshSerialize, u64: BorshSerialize,
source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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
source§impl PartialEq<Metadata> for Metadata
impl PartialEq<Metadata> for Metadata
impl Eq for Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.