Trait quandl_v3::prelude::DataParameters
[−]
[src]
pub trait DataParameters: HasMut<DataArguments> { fn rows(&mut self, n: usize) -> &mut Self { ... } fn limit(&mut self, n: usize) -> &mut Self { ... } fn order(&mut self, order: Order) -> &mut Self { ... } fn collapse(&mut self, collapse: Frequency) -> &mut Self { ... } fn transform(&mut self, transform: Transform) -> &mut Self { ... } fn end_date(&mut self, year: u16, month: u8, day: u8) -> &mut Self { ... } fn start_date(&mut self, year: u16, month: u8, day: u8) -> &mut Self { ... } fn column_index(&mut self, index: usize) -> &mut Self { ... } fn fmt(&self) -> Option<String> { ... } }
Data parameters implemented by data fetching queries.
Provided Methods
fn rows(&mut self, n: usize) -> &mut Self
Specify the number of rows of data to be returned by this query.
Note that this is identical to the limit
parameter.
fn limit(&mut self, n: usize) -> &mut Self
Specify the number of rows of data to be returned by this query.
Note that this is identical to the rows
parameter.
fn order(&mut self, order: Order) -> &mut Self
Specify the ordering of the data.
More specifically, it can be precised whether the data should be returned with dates in an
ascending (Order::asc
) or descending (Order::desc
) order.
fn collapse(&mut self, collapse: Frequency) -> &mut Self
Specify whether the data should be returned at a smaller frequency than avaiable.
fn transform(&mut self, transform: Transform) -> &mut Self
Specify how the data should be transformed by Quandl's server before being returned.
fn end_date(&mut self, year: u16, month: u8, day: u8) -> &mut Self
Specify the oldest data point to be returned.
Note that if the date makes no sense, the error will be reported by the Quandl server (wasting one api call in the process).
fn start_date(&mut self, year: u16, month: u8, day: u8) -> &mut Self
Specify the earliest data point to be returned.
Note that if the date makes no sense, the error will be reported by the Quandl server (wasting one api call in the process).
fn column_index(&mut self, index: usize) -> &mut Self
Specify which column to be returned.
Note that the column 0, i.e. the 'date' column, is always returned.
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.
Implementors
impl DataParameters for DataQuery