pub struct Withdrawal {
pub chain: Chain,
pub sign_schema: SignatureSchema,
pub to: String,
pub asset_id: AssetId,
pub amount: AssetAmount,
pub fee: AssetAmount,
}👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Expand description
Represents a withdrawal transaction.
Fields§
§chain: Chain👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Specify chain
sign_schema: SignatureSchema👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Signature schema
to: String👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Withdrawal to address
asset_id: AssetId👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Withdrawal asset id
amount: AssetAmount👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Withdrawal amount Note: This is the amount the user will receive.
fee: AssetAmount👎Deprecated: Use WithdrawalV2 instead, will remove when vetkd is ready
Withdrawal 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§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