Struct cardano_multiplatform_lib::metadata::MetadataMap
source · [−]pub struct MetadataMap(_);
Implementations
sourceimpl MetadataMap
impl MetadataMap
pub fn from_bytes(bytes: Vec<u8>) -> Result<MetadataMap, DeserializeError>
sourceimpl MetadataMap
impl MetadataMap
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert(
&mut self,
key: &TransactionMetadatum,
value: &TransactionMetadatum
) -> Option<TransactionMetadatum>
pub fn insert_str(
&mut self,
key: &str,
value: &TransactionMetadatum
) -> Result<Option<TransactionMetadatum>, JsError>
pub fn insert_i32(
&mut self,
key: i32,
value: &TransactionMetadatum
) -> Option<TransactionMetadatum>
pub fn get(
&self,
key: &TransactionMetadatum
) -> Result<TransactionMetadatum, JsError>
pub fn get_str(&self, key: &str) -> Result<TransactionMetadatum, JsError>
pub fn get_i32(&self, key: i32) -> Result<TransactionMetadatum, JsError>
pub fn has(&self, key: &TransactionMetadatum) -> bool
pub fn keys(&self) -> MetadataList
Trait Implementations
sourceimpl Clone for MetadataMap
impl Clone for MetadataMap
sourcefn clone(&self) -> MetadataMap
fn clone(&self) -> MetadataMap
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MetadataMap
impl Debug for MetadataMap
sourceimpl Deserialize for MetadataMap
impl Deserialize for MetadataMap
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
sourceimpl Hash for MetadataMap
impl Hash for MetadataMap
sourceimpl Ord for MetadataMap
impl Ord for MetadataMap
sourcefn cmp(&self, other: &MetadataMap) -> Ordering
fn cmp(&self, other: &MetadataMap) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MetadataMap> for MetadataMap
impl PartialEq<MetadataMap> for MetadataMap
sourcefn eq(&self, other: &MetadataMap) -> bool
fn eq(&self, other: &MetadataMap) -> bool
sourceimpl PartialOrd<MetadataMap> for MetadataMap
impl PartialOrd<MetadataMap> for MetadataMap
sourcefn partial_cmp(&self, other: &MetadataMap) -> Option<Ordering>
fn partial_cmp(&self, other: &MetadataMap) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for MetadataMap
impl Serialize for MetadataMap
fn serialize<'se, W: Write>(
&self,
serializer: &'se mut Serializer<W>
) -> Result<&'se mut Serializer<W>>
impl Eq for MetadataMap
impl StructuralEq for MetadataMap
impl StructuralPartialEq for MetadataMap
Auto Trait Implementations
impl RefUnwindSafe for MetadataMap
impl Send for MetadataMap
impl Sync for MetadataMap
impl Unpin for MetadataMap
impl UnwindSafe for MetadataMap
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