pub struct AssetNetwork {Show 18 fields
pub contract_address: Option<String>,
pub deposit_confirmations: i32,
pub deposit_enabled: bool,
pub maintenance: Option<MaintenanceState>,
pub max_withdrawal: Option<Amount>,
pub memo_label: Option<String>,
pub memo_required: bool,
pub memo_supported: bool,
pub min_deposit: Amount,
pub min_withdrawal: Amount,
pub network: String,
pub network_name: String,
pub notice: Option<String>,
pub token_kind: String,
pub withdrawal_decimals: i32,
pub withdrawal_enabled: bool,
pub withdrawal_fee: Amount,
pub withdrawal_fee_asset: String,
}Expand description
An asset’s policy on one network.
Fields§
§contract_address: Option<String>Contract address or chain asset id, for a token.
deposit_confirmations: i32Confirmations before a deposit is credited.
deposit_enabled: boolWhether deposits are accepted.
maintenance: Option<MaintenanceState>maintenance
max_withdrawal: Option<Amount>max_withdrawal
memo_label: Option<String>What to call the memo field in a UI.
memo_required: boolWhether a memo is mandatory.
memo_supported: boolWhether the network uses a memo / destination tag.
min_deposit: Amountmin_deposit
min_withdrawal: Amountmin_withdrawal
network: StringNetwork code.
network_name: StringNetwork display name.
notice: Option<String>Operator note.
token_kind: StringHow the asset exists on this chain.
withdrawal_decimals: i32Decimal places a withdrawal amount is truncated to.
withdrawal_enabled: boolWhether withdrawals are accepted.
withdrawal_fee: Amountwithdrawal_fee
withdrawal_fee_asset: StringAsset the withdrawal fee is charged in.
Trait Implementations§
Source§impl Clone for AssetNetwork
impl Clone for AssetNetwork
Source§impl Debug for AssetNetwork
impl Debug for AssetNetwork
Source§impl<'de> Deserialize<'de> for AssetNetwork
impl<'de> Deserialize<'de> for AssetNetwork
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 for AssetNetwork
impl PartialEq for AssetNetwork
Source§impl Serialize for AssetNetwork
impl Serialize for AssetNetwork
impl StructuralPartialEq for AssetNetwork
Auto Trait Implementations§
impl Freeze for AssetNetwork
impl RefUnwindSafe for AssetNetwork
impl Send for AssetNetwork
impl Sync for AssetNetwork
impl Unpin for AssetNetwork
impl UnsafeUnpin for AssetNetwork
impl UnwindSafe for AssetNetwork
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