Struct fuel_core_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 ==
.source§impl Serialize for CoinConfig
impl Serialize for CoinConfig
impl Eq for CoinConfig
impl StructuralEq for CoinConfig
impl StructuralPartialEq for CoinConfig
Auto Trait Implementations§
impl RefUnwindSafe for CoinConfig
impl Send for CoinConfig
impl Sync for CoinConfig
impl Unpin for CoinConfig
impl UnwindSafe for CoinConfig
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more