pub struct LegPricesResponse {
pub amount: f64,
pub legs: Vec<LegPrice>,
}Expand description
Response from get_leg_prices endpoint
Contains the calculated leg prices for a combo structure.
Fields§
§amount: f64This value multiplied by the ratio of a leg gives trade size on that leg
legs: Vec<LegPrice>List of leg prices
Implementations§
Trait Implementations§
Source§impl Clone for LegPricesResponse
impl Clone for LegPricesResponse
Source§fn clone(&self) -> LegPricesResponse
fn clone(&self) -> LegPricesResponse
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 LegPricesResponse
impl Debug for LegPricesResponse
Source§impl<'de> Deserialize<'de> for LegPricesResponse
impl<'de> Deserialize<'de> for LegPricesResponse
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 PartialEq for LegPricesResponse
impl PartialEq for LegPricesResponse
Source§impl Serialize for LegPricesResponse
impl Serialize for LegPricesResponse
impl StructuralPartialEq for LegPricesResponse
Auto Trait Implementations§
impl Freeze for LegPricesResponse
impl RefUnwindSafe for LegPricesResponse
impl Send for LegPricesResponse
impl Sync for LegPricesResponse
impl Unpin for LegPricesResponse
impl UnsafeUnpin for LegPricesResponse
impl UnwindSafe for LegPricesResponse
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