Struct cardano_serialization_lib::MintAssets 
source · pub struct MintAssets(/* private fields */);Implementations§
source§impl MintAssets
 
impl MintAssets
pub fn new() -> Self
pub fn new_from_entry( key: &AssetName, value: &Int ) -> Result<MintAssets, JsError>
pub fn len(&self) -> usize
pub fn insert( &mut self, key: &AssetName, value: Int ) -> Result<Option<Int>, JsError>
pub fn get(&self, key: &AssetName) -> Option<Int>
pub fn keys(&self) -> AssetNames
Trait Implementations§
source§impl Clone for MintAssets
 
impl Clone for MintAssets
source§fn clone(&self) -> MintAssets
 
fn clone(&self) -> MintAssets
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for MintAssets
 
impl Debug for MintAssets
source§impl<'de> Deserialize<'de> for MintAssets
 
impl<'de> Deserialize<'de> for MintAssets
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 JsonSchema for MintAssets
 
impl JsonSchema for MintAssets
source§fn schema_name() -> String
 
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
 
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the 
$ref keyword. Read moresource§impl Ord for MintAssets
 
impl Ord for MintAssets
source§fn cmp(&self, other: &MintAssets) -> Ordering
 
fn cmp(&self, other: &MintAssets) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MintAssets
 
impl PartialEq for MintAssets
source§fn eq(&self, other: &MintAssets) -> bool
 
fn eq(&self, other: &MintAssets) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MintAssets
 
impl PartialOrd for MintAssets
source§fn partial_cmp(&self, other: &MintAssets) -> Option<Ordering>
 
fn partial_cmp(&self, other: &MintAssets) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for MintAssets
 
impl Serialize for MintAssets
source§impl Serialize for MintAssets
 
impl Serialize for MintAssets
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W> ) -> Result<&'se mut Serializer<W>>
impl Eq for MintAssets
impl StructuralEq for MintAssets
impl StructuralPartialEq for MintAssets
Auto Trait Implementations§
impl RefUnwindSafe for MintAssets
impl Send for MintAssets
impl Sync for MintAssets
impl Unpin for MintAssets
impl UnwindSafe for MintAssets
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