pub struct BswapPoolsResponseItem {
pub assets: Vec<String>,
pub pool_id: i64,
pub pool_name: String,
}
Expand description
BswapPoolsResponseItem
JSON schema
{
"type": "object",
"required": [
"assets",
"poolId",
"poolName"
],
"properties": {
"assets": {
"examples": [
[
"BUSD",
"USDT"
]
],
"type": "array",
"items": {
"type": "string",
"maxItems": 2,
"minItems": 2
}
},
"poolId": {
"examples": [
2
],
"type": "integer",
"format": "int64"
},
"poolName": {
"examples": [
"BUSD/USDT"
],
"type": "string"
}
}
}
Fields§
§assets: Vec<String>
§pool_id: i64
§pool_name: String
Trait Implementations§
Source§impl Clone for BswapPoolsResponseItem
impl Clone for BswapPoolsResponseItem
Source§fn clone(&self) -> BswapPoolsResponseItem
fn clone(&self) -> BswapPoolsResponseItem
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 Debug for BswapPoolsResponseItem
impl Debug for BswapPoolsResponseItem
Source§impl<'de> Deserialize<'de> for BswapPoolsResponseItem
impl<'de> Deserialize<'de> for BswapPoolsResponseItem
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<&BswapPoolsResponseItem> for BswapPoolsResponseItem
impl From<&BswapPoolsResponseItem> for BswapPoolsResponseItem
Source§fn from(value: &BswapPoolsResponseItem) -> Self
fn from(value: &BswapPoolsResponseItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BswapPoolsResponseItem
impl RefUnwindSafe for BswapPoolsResponseItem
impl Send for BswapPoolsResponseItem
impl Sync for BswapPoolsResponseItem
impl Unpin for BswapPoolsResponseItem
impl UnwindSafe for BswapPoolsResponseItem
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