Struct fuel_chain_config::config::CoinConfig
source · pub struct CoinConfig {
pub tx_id: Option<Bytes32>,
pub output_index: Option<u64>,
pub block_created: Option<BlockHeight>,
pub maturity: Option<BlockHeight>,
pub owner: Address,
pub amount: u64,
pub asset_id: AssetId,
}
Fields§
§tx_id: Option<Bytes32>
auto-generated if None
output_index: Option<u64>
§block_created: Option<BlockHeight>
used if coin is forked from another chain to preserve id
maturity: Option<BlockHeight>
§owner: Address
§amount: u64
§asset_id: AssetId
Trait Implementations§
source§impl Clone for CoinConfig
impl Clone for CoinConfig
source§fn clone(&self) -> CoinConfig
fn clone(&self) -> CoinConfig
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 CoinConfig
impl Debug for CoinConfig
source§impl<'de> Deserialize<'de> for CoinConfig
impl<'de> Deserialize<'de> for CoinConfig
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 PartialEq<CoinConfig> for CoinConfig
impl PartialEq<CoinConfig> for CoinConfig
source§fn eq(&self, other: &CoinConfig) -> bool
fn eq(&self, other: &CoinConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.