pub struct ContractMetaEntry {
pub key: String,
pub value: String,
}Expand description
A single contractmetav0 key/value entry.
Contract metadata is an arbitrary, open key/value space (the SCMetaV0
XDR struct is literally a string key / string val pair), so entries are
surfaced verbatim and in section order — no vocabulary is assumed and
repeated keys are preserved as separate entries.
Fields§
§key: StringThe metadata key, exactly as declared by the contract (UTF-8).
value: StringThe metadata value, exactly as declared by the contract (UTF-8).
Trait Implementations§
Source§impl Clone for ContractMetaEntry
impl Clone for ContractMetaEntry
Source§impl Debug for ContractMetaEntry
impl Debug for ContractMetaEntry
Source§impl<'de> Deserialize<'de> for ContractMetaEntry
impl<'de> Deserialize<'de> for ContractMetaEntry
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 Eq for ContractMetaEntry
Source§impl PartialEq for ContractMetaEntry
impl PartialEq for ContractMetaEntry
Source§impl Serialize for ContractMetaEntry
impl Serialize for ContractMetaEntry
impl StructuralPartialEq for ContractMetaEntry
Auto Trait Implementations§
impl Freeze for ContractMetaEntry
impl RefUnwindSafe for ContractMetaEntry
impl Send for ContractMetaEntry
impl Sync for ContractMetaEntry
impl Unpin for ContractMetaEntry
impl UnsafeUnpin for ContractMetaEntry
impl UnwindSafe for ContractMetaEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.