pub struct Irc30Metadata { /* private fields */ }Expand description
The IRC30 native token metadata standard schema.
Implementations§
Source§impl Irc30Metadata
impl Irc30Metadata
Source§impl Irc30Metadata
impl Irc30Metadata
pub fn new( name: impl Into<String>, symbol: impl Into<String>, decimals: u32, ) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_url(self, url: impl Into<String>) -> Self
pub fn with_logo_url(self, logo_url: impl Into<String>) -> Self
pub fn with_logo(self, logo: impl Into<String>) -> Self
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for Irc30Metadata
impl Clone for Irc30Metadata
Source§fn clone(&self) -> Irc30Metadata
fn clone(&self) -> Irc30Metadata
Returns a duplicate 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 Irc30Metadata
impl Debug for Irc30Metadata
Source§impl<'de> Deserialize<'de> for Irc30Metadata
impl<'de> Deserialize<'de> for Irc30Metadata
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 From<Irc30Metadata> for Vec<u8>
impl From<Irc30Metadata> for Vec<u8>
Source§fn from(value: Irc30Metadata) -> Self
fn from(value: Irc30Metadata) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Irc30Metadata
impl PartialEq for Irc30Metadata
Source§impl Serialize for Irc30Metadata
impl Serialize for Irc30Metadata
Source§impl TryFrom<Irc30Metadata> for MetadataFeature
impl TryFrom<Irc30Metadata> for MetadataFeature
impl Eq for Irc30Metadata
impl StructuralPartialEq for Irc30Metadata
Auto Trait Implementations§
impl Freeze for Irc30Metadata
impl RefUnwindSafe for Irc30Metadata
impl Send for Irc30Metadata
impl Sync for Irc30Metadata
impl Unpin for Irc30Metadata
impl UnwindSafe for Irc30Metadata
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.