pub struct WithdrawRequest {
pub id: String,
pub fee: Option<String>,
pub fee_level: Option<FeeLevel>,
pub tx_note: Option<String>,
}
Fields§
§id: String
id of position to withdraw
fee: Option<String>
Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required.
fee_level: Option<FeeLevel>
§tx_note: Option<String>
The note to associate with the transactions.
Implementations§
Source§impl WithdrawRequest
impl WithdrawRequest
pub fn new(id: String) -> WithdrawRequest
Trait Implementations§
Source§impl Clone for WithdrawRequest
impl Clone for WithdrawRequest
Source§fn clone(&self) -> WithdrawRequest
fn clone(&self) -> WithdrawRequest
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 WithdrawRequest
impl Debug for WithdrawRequest
Source§impl Default for WithdrawRequest
impl Default for WithdrawRequest
Source§fn default() -> WithdrawRequest
fn default() -> WithdrawRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WithdrawRequest
impl<'de> Deserialize<'de> for WithdrawRequest
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 WithdrawRequest
impl PartialEq for WithdrawRequest
Source§impl Serialize for WithdrawRequest
impl Serialize for WithdrawRequest
impl StructuralPartialEq for WithdrawRequest
Auto Trait Implementations§
impl Freeze for WithdrawRequest
impl RefUnwindSafe for WithdrawRequest
impl Send for WithdrawRequest
impl Sync for WithdrawRequest
impl Unpin for WithdrawRequest
impl UnwindSafe for WithdrawRequest
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