Struct ex3_node_types::transaction::Withdrawal
source · pub struct Withdrawal {
pub chain: Chain,
pub sign_schema: SignatureSchema,
pub to: String,
pub asset_id: AssetId,
pub amount: AssetAmount,
pub fee: AssetAmount,
}Expand description
Withdrawal
Fields§
§chain: ChainSpecify chain
sign_schema: SignatureSchemaSignature schema
to: StringWithdrawal to address
asset_id: AssetIdWithdrawal asset id
amount: AssetAmountWithdrawal amount Note: This is the amount that the user will receive
fee: AssetAmountWithdrawal fee
Trait Implementations§
source§impl Clone for Withdrawal
impl Clone for Withdrawal
source§fn clone(&self) -> Withdrawal
fn clone(&self) -> Withdrawal
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 Withdrawal
impl Debug for Withdrawal
source§impl<'de> Deserialize<'de> for Withdrawal
impl<'de> Deserialize<'de> for Withdrawal
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 Withdrawal
impl PartialEq for Withdrawal
source§fn eq(&self, other: &Withdrawal) -> bool
fn eq(&self, other: &Withdrawal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Withdrawal
impl Serialize for Withdrawal
source§impl Storable for Withdrawal
impl Storable for Withdrawal
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for Withdrawal
impl StructuralPartialEq for Withdrawal
Auto Trait Implementations§
impl Freeze for Withdrawal
impl RefUnwindSafe for Withdrawal
impl Send for Withdrawal
impl Sync for Withdrawal
impl Unpin for Withdrawal
impl UnwindSafe for Withdrawal
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