pub struct Mrc20State {
pub profile: String,
pub prev: String,
pub seq: u64,
pub ticker: Option<String>,
pub name: Option<String>,
pub decimals: Option<u32>,
pub supply: Option<u64>,
pub balances: Option<BTreeMap<String, u64>>,
pub ops: Vec<Mrc20Op>,
pub anchor: Option<String>,
}Expand description
Full MRC20 token state in the hash chain.
Each state links to its predecessor via prev = SHA-256(JCS(prev_state)).
The genesis state has prev = "0" * 64 and seq = 0.
Fields§
§profile: String§prev: String§seq: u64§ticker: Option<String>§name: Option<String>§decimals: Option<u32>§supply: Option<u64>§balances: Option<BTreeMap<String, u64>>§ops: Vec<Mrc20Op>§anchor: Option<String>Trait Implementations§
Source§impl Clone for Mrc20State
impl Clone for Mrc20State
Source§fn clone(&self) -> Mrc20State
fn clone(&self) -> Mrc20State
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Mrc20State
impl Debug for Mrc20State
Source§impl<'de> Deserialize<'de> for Mrc20State
impl<'de> Deserialize<'de> for Mrc20State
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
Auto Trait Implementations§
impl Freeze for Mrc20State
impl RefUnwindSafe for Mrc20State
impl Send for Mrc20State
impl Sync for Mrc20State
impl Unpin for Mrc20State
impl UnsafeUnpin for Mrc20State
impl UnwindSafe for Mrc20State
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