pub struct BatchQuoteParams { /* private fields */ }Expand description
All inputs needed to call FyndClient::batch_quote.
Submits multiple orders in a single request. All orders share the same QuoteOptions.
The response preserves the input order: quotes[i] corresponds to orders[i].
Implementations§
Source§impl BatchQuoteParams
impl BatchQuoteParams
Sourcepub fn new(orders: Vec<Order>, options: QuoteOptions) -> Self
pub fn new(orders: Vec<Order>, options: QuoteOptions) -> Self
Create a batch request from a list of orders and shared solving options.
orders must be non-empty. Each order is solved independently by the server;
the response vec has the same length and index alignment as the input.
Trait Implementations§
Source§impl Clone for BatchQuoteParams
impl Clone for BatchQuoteParams
Source§fn clone(&self) -> BatchQuoteParams
fn clone(&self) -> BatchQuoteParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for BatchQuoteParams
impl RefUnwindSafe for BatchQuoteParams
impl Send for BatchQuoteParams
impl Sync for BatchQuoteParams
impl Unpin for BatchQuoteParams
impl UnsafeUnpin for BatchQuoteParams
impl UnwindSafe for BatchQuoteParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more