Struct core::event_content::Metadata
[−]pub struct Metadata {
pub namespace: String,
pub governance_id: DigestIdentifier,
pub governance_version: u64,
pub schema_id: String,
pub owner: KeyIdentifier,
}
Expand description
Metadata of a TAPLE Event
Fields
namespace: String
governance_id: DigestIdentifier
governance_version: u64
schema_id: String
owner: KeyIdentifier
Trait Implementations
impl BorshDeserialize for Metadatawhere
String: BorshDeserialize,
DigestIdentifier: BorshDeserialize,
u64: BorshDeserialize,
KeyIdentifier: BorshDeserialize,
impl BorshDeserialize for Metadatawhere
String: BorshDeserialize,
DigestIdentifier: BorshDeserialize,
u64: BorshDeserialize,
KeyIdentifier: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Metadata, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Metadata, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
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.
impl BorshSerialize for Metadatawhere
String: BorshSerialize,
DigestIdentifier: BorshSerialize,
u64: BorshSerialize,
KeyIdentifier: BorshSerialize,
impl BorshSerialize for Metadatawhere
String: BorshSerialize,
DigestIdentifier: BorshSerialize,
u64: BorshSerialize,
KeyIdentifier: BorshSerialize,
impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
fn deserialize<__D>(
__deserializer: __D
) -> Result<Metadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Metadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Metadata
impl Serialize for Metadata
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl ToSchema for Metadata
impl ToSchema 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.