pub struct WithdrawalV2 {
pub chain: Chain,
pub to: String,
pub asset_id: AssetId,
pub amount: AssetAmount,
pub fee_asset_id: Option<AssetId>,
pub fee: AssetAmount,
}Expand description
Represents a version 2 withdrawal transaction.
Fields§
§chain: ChainSpecify chain
to: StringWithdrawal to address
asset_id: AssetIdWithdrawal asset id
amount: AssetAmountWithdrawal amount Note: This is the amount the user will receive.
fee_asset_id: Option<AssetId>Withdrawal fee asset id Note: This is the asset used to pay the fee. If not set, the fee will be paid in the same asset as the amount.
fee: AssetAmountWithdrawal fee
Trait Implementations§
Source§impl Clone for WithdrawalV2
impl Clone for WithdrawalV2
Source§fn clone(&self) -> WithdrawalV2
fn clone(&self) -> WithdrawalV2
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 WithdrawalV2
impl Debug for WithdrawalV2
Source§impl<'de> Deserialize<'de> for WithdrawalV2
impl<'de> Deserialize<'de> for WithdrawalV2
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 WithdrawalV2
impl PartialEq for WithdrawalV2
Source§impl Serialize for WithdrawalV2
impl Serialize for WithdrawalV2
Source§impl Storable for WithdrawalV2
impl Storable for WithdrawalV2
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 WithdrawalV2
impl StructuralPartialEq for WithdrawalV2
Auto Trait Implementations§
impl Freeze for WithdrawalV2
impl RefUnwindSafe for WithdrawalV2
impl Send for WithdrawalV2
impl Sync for WithdrawalV2
impl Unpin for WithdrawalV2
impl UnwindSafe for WithdrawalV2
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