pub struct Coin {
pub owner: Address,
pub amount: Word,
pub color: Color,
pub maturity: BlockHeight,
pub status: CoinStatus,
pub block_created: BlockHeight,
}
Fields
owner: Address
amount: Word
color: Color
maturity: BlockHeight
status: CoinStatus
block_created: BlockHeight
Trait Implementations
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
type Error = KvStoreError
type Error = KvStoreError
Error implementation of the storage functions
Append K->V
mapping to the storage. Read more
Remove K->V
mapping from the storage. Read more
Retrieve Cow<V>
such as K->V
.
Return true
if there is a K
mapping to a value in the storage.
Auto Trait Implementations
impl RefUnwindSafe for Coin
impl UnwindSafe for Coin
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more