pub struct BswapPoolConfigureResponseItemLiquidity {
pub constant_a: i64,
pub min_redeem_share: f64,
pub slippage_tolerance: f64,
}
Expand description
BswapPoolConfigureResponseItemLiquidity
JSON schema
{
"type": "object",
"required": [
"constantA",
"minRedeemShare",
"slippageTolerance"
],
"properties": {
"constantA": {
"description": "\"NA\" if pool is an innovation pool",
"examples": [
2000
],
"type": "integer",
"format": "int64"
},
"minRedeemShare": {
"examples": [
0.1
],
"type": "number",
"format": "double"
},
"slippageTolerance": {
"description": "The swap proceeds only when the slippage is within the set range",
"examples": [
0.2
],
"type": "number",
"format": "double"
}
}
}
Fields§
§constant_a: i64
“NA” if pool is an innovation pool
slippage_tolerance: f64
Trait Implementations§
Source§impl Clone for BswapPoolConfigureResponseItemLiquidity
impl Clone for BswapPoolConfigureResponseItemLiquidity
Source§fn clone(&self) -> BswapPoolConfigureResponseItemLiquidity
fn clone(&self) -> BswapPoolConfigureResponseItemLiquidity
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 BswapPoolConfigureResponseItemLiquidity
impl<'de> Deserialize<'de> for BswapPoolConfigureResponseItemLiquidity
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<&BswapPoolConfigureResponseItemLiquidity> for BswapPoolConfigureResponseItemLiquidity
impl From<&BswapPoolConfigureResponseItemLiquidity> for BswapPoolConfigureResponseItemLiquidity
Source§fn from(value: &BswapPoolConfigureResponseItemLiquidity) -> Self
fn from(value: &BswapPoolConfigureResponseItemLiquidity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BswapPoolConfigureResponseItemLiquidity
impl RefUnwindSafe for BswapPoolConfigureResponseItemLiquidity
impl Send for BswapPoolConfigureResponseItemLiquidity
impl Sync for BswapPoolConfigureResponseItemLiquidity
impl Unpin for BswapPoolConfigureResponseItemLiquidity
impl UnwindSafe for BswapPoolConfigureResponseItemLiquidity
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