pub struct NftLedger {
pub txs: Vec<(TokenId, u32, u32)>,
pub owners: BTreeMap<TokenId, ([u8; 20], bool)>,
pub uris: BTreeMap<TokenId, Vec<u8>>,
pub minted: BTreeSet<TokenId>,
pub problems: Vec<String>,
}Expand description
What a ledger did to tokens.
Fields§
§txs: Vec<(TokenId, u32, u32)>Token, TransactionIndex and position in the ledger’s transaction list.
owners: BTreeMap<TokenId, ([u8; 20], bool)>§uris: BTreeMap<TokenId, Vec<u8>>§minted: BTreeSet<TokenId>§problems: Vec<String>Transactions whose effect could not be read, with the reason. Their history entries are kept; the owner or URI change is not.
Trait Implementations§
impl Eq for NftLedger
impl StructuralPartialEq for NftLedger
Auto Trait Implementations§
impl Freeze for NftLedger
impl RefUnwindSafe for NftLedger
impl Send for NftLedger
impl Sync for NftLedger
impl Unpin for NftLedger
impl UnsafeUnpin for NftLedger
impl UnwindSafe for NftLedger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].