pub struct BswapAddLiquidityPreviewCombination {
pub base_amt: i64,
pub base_asset: String,
pub price: f64,
pub quote_amt: i64,
pub quote_asset: String,
pub share: f64,
}
Expand description
BswapAddLiquidityPreviewCombination
JSON schema
{
"type": "object",
"required": [
"baseAmt",
"baseAsset",
"price",
"quoteAmt",
"quoteAsset",
"share"
],
"properties": {
"baseAmt": {
"examples": [
299975
],
"type": "integer",
"format": "int64"
},
"baseAsset": {
"examples": [
"BUSD"
],
"type": "string"
},
"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"
}
}
}
Fields§
§base_amt: i64
§base_asset: String
§price: f64
§quote_amt: i64
§quote_asset: String
Trait Implementations§
Source§impl Clone for BswapAddLiquidityPreviewCombination
impl Clone for BswapAddLiquidityPreviewCombination
Source§fn clone(&self) -> BswapAddLiquidityPreviewCombination
fn clone(&self) -> BswapAddLiquidityPreviewCombination
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 BswapAddLiquidityPreviewCombination
impl<'de> Deserialize<'de> for BswapAddLiquidityPreviewCombination
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<&BswapAddLiquidityPreviewCombination> for BswapAddLiquidityPreviewCombination
impl From<&BswapAddLiquidityPreviewCombination> for BswapAddLiquidityPreviewCombination
Source§fn from(value: &BswapAddLiquidityPreviewCombination) -> Self
fn from(value: &BswapAddLiquidityPreviewCombination) -> Self
Converts to this type from the input type.
Source§impl From<BswapAddLiquidityPreviewCombination> for BswapAddLiquidityPreviewResponse
impl From<BswapAddLiquidityPreviewCombination> for BswapAddLiquidityPreviewResponse
Source§fn from(value: BswapAddLiquidityPreviewCombination) -> Self
fn from(value: BswapAddLiquidityPreviewCombination) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BswapAddLiquidityPreviewCombination
impl RefUnwindSafe for BswapAddLiquidityPreviewCombination
impl Send for BswapAddLiquidityPreviewCombination
impl Sync for BswapAddLiquidityPreviewCombination
impl Unpin for BswapAddLiquidityPreviewCombination
impl UnwindSafe for BswapAddLiquidityPreviewCombination
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