pub struct OptionsPricesResponse {
pub options: Vec<OptionsPricesItem>,
pub pagination_key: Option<String>,
}
Expand description
Options (OHLC) Data API response.
See: API Reference
Fields§
§options: Vec<OptionsPricesItem>
List of Options prices
pagination_key: Option<String>
Pagination key for fetching next set of data
Trait Implementations§
Source§impl Clone for OptionsPricesResponse
impl Clone for OptionsPricesResponse
Source§fn clone(&self) -> OptionsPricesResponse
fn clone(&self) -> OptionsPricesResponse
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 OptionsPricesResponse
impl Debug for OptionsPricesResponse
Source§impl<'de> Deserialize<'de> for OptionsPricesResponse
impl<'de> Deserialize<'de> for OptionsPricesResponse
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 HasPaginationKey for OptionsPricesResponse
impl HasPaginationKey for OptionsPricesResponse
Source§fn get_pagination_key(&self) -> Option<&str>
fn get_pagination_key(&self) -> Option<&str>
Get the pagination key.
Source§impl JQuantsBuilder<OptionsPricesResponse> for OptionsPricesBuilder
impl JQuantsBuilder<OptionsPricesResponse> for OptionsPricesBuilder
Source§async fn send(self) -> Result<OptionsPricesResponse, JQuantsError>
async fn send(self) -> Result<OptionsPricesResponse, JQuantsError>
Send the request.
Source§async fn send_ref(&self) -> Result<OptionsPricesResponse, JQuantsError>
async fn send_ref(&self) -> Result<OptionsPricesResponse, JQuantsError>
Send the request without consuming ownership.
Use only when reusing the builder.
Source§impl MergePage for OptionsPricesResponse
impl MergePage for OptionsPricesResponse
Source§fn merge_page(
page: Result<Vec<Self>, JQuantsError>,
) -> Result<Self, JQuantsError>
fn merge_page( page: Result<Vec<Self>, JQuantsError>, ) -> Result<Self, JQuantsError>
Merge the pages.
Source§impl Paginatable<OptionsPricesResponse> for OptionsPricesBuilder
impl Paginatable<OptionsPricesResponse> for OptionsPricesBuilder
Source§fn pagination_key(self, pagination_key: impl Into<String>) -> Self
fn pagination_key(self, pagination_key: impl Into<String>) -> Self
Set the pagination key.
Source§fn fetch_pages_stream(self) -> impl Stream<Item = Result<R, JQuantsError>>
fn fetch_pages_stream(self) -> impl Stream<Item = Result<R, JQuantsError>>
Fetch the pages stream.
Source§fn fetch_all_and_merge(self) -> impl Future<Output = Result<R, JQuantsError>>
fn fetch_all_and_merge(self) -> impl Future<Output = Result<R, JQuantsError>>
Fetch all pages and merge them.
Source§impl PartialEq for OptionsPricesResponse
impl PartialEq for OptionsPricesResponse
impl StructuralPartialEq for OptionsPricesResponse
Auto Trait Implementations§
impl Freeze for OptionsPricesResponse
impl RefUnwindSafe for OptionsPricesResponse
impl Send for OptionsPricesResponse
impl Sync for OptionsPricesResponse
impl Unpin for OptionsPricesResponse
impl UnwindSafe for OptionsPricesResponse
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