pub enum CreateSwapQuoteResponseWrapper {
CreateSwapQuoteResponse(CreateSwapQuoteResponse),
SwapUnavailableResponse(SwapUnavailableResponse),
}
Expand description
A wrapper for the response of a swap quote operation.
JSON schema
{
"description": "A wrapper for the response of a swap quote operation.",
"oneOf": [
{
"$ref": "#/components/schemas/CreateSwapQuoteResponse"
},
{
"$ref": "#/components/schemas/SwapUnavailableResponse"
}
]
}
Variants§
CreateSwapQuoteResponse(CreateSwapQuoteResponse)
Trait Implementations§
Source§impl Clone for CreateSwapQuoteResponseWrapper
impl Clone for CreateSwapQuoteResponseWrapper
Source§fn clone(&self) -> CreateSwapQuoteResponseWrapper
fn clone(&self) -> CreateSwapQuoteResponseWrapper
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 CreateSwapQuoteResponseWrapper
impl<'de> Deserialize<'de> for CreateSwapQuoteResponseWrapper
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<&CreateSwapQuoteResponseWrapper> for CreateSwapQuoteResponseWrapper
impl From<&CreateSwapQuoteResponseWrapper> for CreateSwapQuoteResponseWrapper
Source§fn from(value: &CreateSwapQuoteResponseWrapper) -> Self
fn from(value: &CreateSwapQuoteResponseWrapper) -> Self
Converts to this type from the input type.
Source§impl From<CreateSwapQuoteResponse> for CreateSwapQuoteResponseWrapper
impl From<CreateSwapQuoteResponse> for CreateSwapQuoteResponseWrapper
Source§fn from(value: CreateSwapQuoteResponse) -> Self
fn from(value: CreateSwapQuoteResponse) -> 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.
Auto Trait Implementations§
impl Freeze for CreateSwapQuoteResponseWrapper
impl RefUnwindSafe for CreateSwapQuoteResponseWrapper
impl Send for CreateSwapQuoteResponseWrapper
impl Sync for CreateSwapQuoteResponseWrapper
impl Unpin for CreateSwapQuoteResponseWrapper
impl UnwindSafe for CreateSwapQuoteResponseWrapper
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