Struct quandl_v3::prelude::DataQuery
[−]
[src]
pub struct DataQuery { pub database_code: String, pub dataset_code: String, // some fields omitted }
Query the data from a specific dataset.
Fields
database_code: String
dataset_code: String
Methods
impl DataQuery
[src]
fn new<S1: AsRef<str>, S2: AsRef<str>>(
database_code: S1,
dataset_code: S2
) -> Self
database_code: S1,
dataset_code: S2
) -> Self
Create a new data query.
Trait Implementations
impl Debug for DataQuery
[src]
impl Clone for DataQuery
[src]
fn clone(&self) -> DataQuery
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for DataQuery
[src]
fn eq(&self, __arg_0: &DataQuery) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataQuery) -> bool
This method tests for !=
.
impl<T: DeserializeOwned + Clone> ApiCall<Vec<T>> for DataQuery
[src]
fn send(&self) -> Result<Vec<T>>
Submit a request to the Quandl's API and return a parsed object representing the data received in a Rust-friendly format. Read more
fn fmt_prefix(&self) -> Option<String>
If applicable, returns the string that would be appended between the QUANDL_API_URL
and the '?' character in a query URL. Read more
fn fmt_arguments(&self) -> Option<String>
If applicable, returns the string that would be appended after the '?' character in a query URL. Read more
fn url(&self) -> String
Returns the URL that will be used to submit the query through Quandl's API. Read more
fn encoded_data(&self) -> Result<Vec<u8>>
Bypass the parsers and retrieve the byte stream received from Quandl directly. Read more
impl ApiParameters for DataQuery
[src]
fn api_key<S: AsRef<str>>(&mut self, api_key: S) -> &mut Self
Include your personal Quandl API key with your query. Read more
fn fmt(&self) -> Option<String>
Return a string which will be appended to the query's URL given that an api key has been provided. Read more
impl DataParameters for DataQuery
[src]
fn rows(&mut self, n: usize) -> &mut Self
Specify the number of rows of data to be returned by this query. Read more
fn limit(&mut self, n: usize) -> &mut Self
Specify the number of rows of data to be returned by this query. Read more
fn order(&mut self, order: Order) -> &mut Self
Specify the ordering of the data. Read more
fn collapse(&mut self, collapse: Frequency) -> &mut Self
Specify whether the data should be returned at a smaller frequency than avaiable. Read more
fn transform(&mut self, transform: Transform) -> &mut Self
Specify how the data should be transformed by Quandl's server before being returned. Read more
fn end_date(&mut self, year: u16, month: u8, day: u8) -> &mut Self
Specify the oldest data point to be returned. Read more
fn start_date(&mut self, year: u16, month: u8, day: u8) -> &mut Self
Specify the earliest data point to be returned. Read more
fn column_index(&mut self, index: usize) -> &mut Self
Specify which column to be returned. Read more
fn fmt(&self) -> Option<String>
Return a string which will be appended to the query's URL given that at least one of the data parameters has been specified. Read more