pub enum TickerPriceResponse {
Variant0(PriceTicker),
Variant1(PriceTickerList),
}
Expand description
TickerPriceResponse
JSON schema
{
"oneOf": [
{
"$ref": "#/components/schemas/priceTicker"
},
{
"$ref": "#/components/schemas/priceTickerList"
}
]
}
Variants§
Variant0(PriceTicker)
Variant1(PriceTickerList)
Trait Implementations§
Source§impl Clone for TickerPriceResponse
impl Clone for TickerPriceResponse
Source§fn clone(&self) -> TickerPriceResponse
fn clone(&self) -> TickerPriceResponse
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 TickerPriceResponse
impl Debug for TickerPriceResponse
Source§impl<'de> Deserialize<'de> for TickerPriceResponse
impl<'de> Deserialize<'de> for TickerPriceResponse
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<&TickerPriceResponse> for TickerPriceResponse
impl From<&TickerPriceResponse> for TickerPriceResponse
Source§fn from(value: &TickerPriceResponse) -> Self
fn from(value: &TickerPriceResponse) -> Self
Converts to this type from the input type.
Source§impl From<PriceTicker> for TickerPriceResponse
impl From<PriceTicker> for TickerPriceResponse
Source§fn from(value: PriceTicker) -> Self
fn from(value: PriceTicker) -> Self
Converts to this type from the input type.
Source§impl From<PriceTickerList> for TickerPriceResponse
impl From<PriceTickerList> for TickerPriceResponse
Source§fn from(value: PriceTickerList) -> Self
fn from(value: PriceTickerList) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TickerPriceResponse
impl RefUnwindSafe for TickerPriceResponse
impl Send for TickerPriceResponse
impl Sync for TickerPriceResponse
impl Unpin for TickerPriceResponse
impl UnwindSafe for TickerPriceResponse
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