Struct ex3_node_types::transaction::RegisterAsset
source · pub struct RegisterAsset {
pub chain: Chain,
pub network: u8,
pub type: TokenType,
pub parent_asset_id: Option<AssetId>,
pub address: String,
}Expand description
Register an asset
Fields§
§chain: ChainSpecify the blockchain
network: u8Specify the network
type: TokenTypeSpecify the type of token
parent_asset_id: Option<AssetId>Specify the parent asset ID
address: StringSpecify the address of the asset
Trait Implementations§
source§impl Clone for RegisterAsset
impl Clone for RegisterAsset
source§fn clone(&self) -> RegisterAsset
fn clone(&self) -> RegisterAsset
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 RegisterAsset
impl Debug for RegisterAsset
source§impl<'de> Deserialize<'de> for RegisterAsset
impl<'de> Deserialize<'de> for RegisterAsset
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<RegisterAsset> for RegisterAsset
impl PartialEq<RegisterAsset> for RegisterAsset
source§fn eq(&self, other: &RegisterAsset) -> bool
fn eq(&self, other: &RegisterAsset) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RegisterAsset
impl Serialize for RegisterAsset
impl Eq for RegisterAsset
impl StructuralEq for RegisterAsset
impl StructuralPartialEq for RegisterAsset
Auto Trait Implementations§
impl RefUnwindSafe for RegisterAsset
impl Send for RegisterAsset
impl Sync for RegisterAsset
impl Unpin for RegisterAsset
impl UnwindSafe for RegisterAsset
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