pub struct BswapRmvLiquidityPreviewSingle {
pub fee: f64,
pub price: f64,
pub quote_amt: i64,
pub quote_asset: String,
pub slippage: f64,
}
Expand description
BswapRmvLiquidityPreviewSingle
JSON schema
{
"type": "object",
"required": [
"fee",
"price",
"quoteAmt",
"quoteAsset",
"slippage"
],
"properties": {
"fee": {
"examples": [
120
],
"type": "number",
"format": "double"
},
"price": {
"examples": [
1.00008334
],
"type": "number",
"format": "double"
},
"quoteAmt": {
"examples": [
300000
],
"type": "integer",
"format": "int64"
},
"quoteAsset": {
"examples": [
"USDT"
],
"type": "string"
},
"slippage": {
"examples": [
0.00007245
],
"type": "number",
"format": "double"
}
}
}
Fields§
§fee: f64
§price: f64
§quote_amt: i64
§quote_asset: String
§slippage: f64
Trait Implementations§
Source§impl Clone for BswapRmvLiquidityPreviewSingle
impl Clone for BswapRmvLiquidityPreviewSingle
Source§fn clone(&self) -> BswapRmvLiquidityPreviewSingle
fn clone(&self) -> BswapRmvLiquidityPreviewSingle
Returns a duplicate 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<'de> Deserialize<'de> for BswapRmvLiquidityPreviewSingle
impl<'de> Deserialize<'de> for BswapRmvLiquidityPreviewSingle
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 From<&BswapRmvLiquidityPreviewSingle> for BswapRmvLiquidityPreviewSingle
impl From<&BswapRmvLiquidityPreviewSingle> for BswapRmvLiquidityPreviewSingle
Source§fn from(value: &BswapRmvLiquidityPreviewSingle) -> Self
fn from(value: &BswapRmvLiquidityPreviewSingle) -> Self
Converts to this type from the input type.
Source§impl From<BswapRmvLiquidityPreviewSingle> for BswapRemoveLiquidityPreviewResponse
impl From<BswapRmvLiquidityPreviewSingle> for BswapRemoveLiquidityPreviewResponse
Source§fn from(value: BswapRmvLiquidityPreviewSingle) -> Self
fn from(value: BswapRmvLiquidityPreviewSingle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BswapRmvLiquidityPreviewSingle
impl RefUnwindSafe for BswapRmvLiquidityPreviewSingle
impl Send for BswapRmvLiquidityPreviewSingle
impl Sync for BswapRmvLiquidityPreviewSingle
impl Unpin for BswapRmvLiquidityPreviewSingle
impl UnwindSafe for BswapRmvLiquidityPreviewSingle
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