pub struct BswapAddLiquidityPreviewSingle {
pub fee: f64,
pub price: f64,
pub quote_amt: i64,
pub quote_asset: String,
pub share: f64,
pub slippage: f64,
}
Expand description
BswapAddLiquidityPreviewSingle
JSON schema
{
"type": "object",
"required": [
"fee",
"price",
"quoteAmt",
"quoteAsset",
"share",
"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"
},
"share": {
"examples": [
1.23
],
"type": "number",
"format": "double"
},
"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 BswapAddLiquidityPreviewSingle
impl Clone for BswapAddLiquidityPreviewSingle
Source§fn clone(&self) -> BswapAddLiquidityPreviewSingle
fn clone(&self) -> BswapAddLiquidityPreviewSingle
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 BswapAddLiquidityPreviewSingle
impl<'de> Deserialize<'de> for BswapAddLiquidityPreviewSingle
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<&BswapAddLiquidityPreviewSingle> for BswapAddLiquidityPreviewSingle
impl From<&BswapAddLiquidityPreviewSingle> for BswapAddLiquidityPreviewSingle
Source§fn from(value: &BswapAddLiquidityPreviewSingle) -> Self
fn from(value: &BswapAddLiquidityPreviewSingle) -> Self
Converts to this type from the input type.
Source§impl From<BswapAddLiquidityPreviewSingle> for BswapAddLiquidityPreviewResponse
impl From<BswapAddLiquidityPreviewSingle> for BswapAddLiquidityPreviewResponse
Source§fn from(value: BswapAddLiquidityPreviewSingle) -> Self
fn from(value: BswapAddLiquidityPreviewSingle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BswapAddLiquidityPreviewSingle
impl RefUnwindSafe for BswapAddLiquidityPreviewSingle
impl Send for BswapAddLiquidityPreviewSingle
impl Sync for BswapAddLiquidityPreviewSingle
impl Unpin for BswapAddLiquidityPreviewSingle
impl UnwindSafe for BswapAddLiquidityPreviewSingle
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