pub struct SwapUnavailableResponse {
pub liquidity_available: bool,
}
Expand description
SwapUnavailableResponse
JSON schema
{
"title": "SwapUnavailableResponse",
"examples": [
{
"liquidityAvailable": false
}
],
"type": "object",
"required": [
"liquidityAvailable"
],
"properties": {
"liquidityAvailable": {
"description": "Whether sufficient liquidity is available to settle the swap. All other fields in the response will be empty if this is false.",
"examples": [
false
],
"type": "boolean",
"enum": [
false
]
}
}
}
Fields§
§liquidity_available: bool
Whether sufficient liquidity is available to settle the swap. All other fields in the response will be empty if this is false.
Implementations§
pub fn builder() -> SwapUnavailableResponse
Trait Implementations§
Source§fn clone(&self) -> SwapUnavailableResponse
fn clone(&self) -> SwapUnavailableResponse
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§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§fn from(value: &SwapUnavailableResponse) -> Self
fn from(value: &SwapUnavailableResponse) -> Self
Converts to this type from the input type.
Source§fn from(value: SwapUnavailableResponse) -> Self
fn from(value: SwapUnavailableResponse) -> Self
Converts to this type from the input type.
Source§fn from(value: SwapUnavailableResponse) -> Self
fn from(value: SwapUnavailableResponse) -> Self
Converts to this type from the input type.
Source§fn from(value: SwapUnavailableResponse) -> Self
fn from(value: SwapUnavailableResponse) -> Self
Converts to this type from the input type.
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SwapUnavailableResponse) -> Result<Self, ConversionError>
fn try_from(value: SwapUnavailableResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
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