[−][src]Struct fred_rs::release::series::Builder
Methods
impl Builder
[src]
pub fn new() -> Builder
[src]
Initializes a new release::series::Builder that can be used to add commands to an API request
The builder does not do validity checking of the arguments nor does it check for duplicates.
use fred_rs::release::series::Builder; // Create a new builder let mut builder = Builder::new(); // add arguments to the builder builder .realtime_start("1900-01-01") .realtime_end("2000-01-01");
pub fn realtime_start(&mut self, start_date: &str) -> &mut Builder
[src]
Adds a realtime_start argument to the builder
Arguments
start_date
- date formatted as YYYY-MM-DD
https://research.stlouisfed.org/docs/api/fred/release_series.html#realtime_start
pub fn realtime_end(&mut self, end_date: &str) -> &mut Builder
[src]
Adds a realtime_end argument to the builder
Arguments
end_date
- date formatted as YYYY-MM-DD
https://research.stlouisfed.org/docs/api/fred/release_series.html#realtime_end
pub fn limit(&mut self, num_results: usize) -> &mut Builder
[src]
Adds a limit argument to the builder
The limit argument specifies a maximum number of observations to return.
Arguments
num_results
- Maximum number of results to return
https://research.stlouisfed.org/docs/api/fred/release_series.html#limit
pub fn offset(&mut self, ofs: usize) -> &mut Builder
[src]
Adds an offset argument to the builder
Adding an offset shifts the starting result number. For example, if limit is 5 and offset is 0 then results 1-5 will be returned, but if offset was 5 then results 6-10 would be returned.
Arguments
ofs
- the offset amount
https://research.stlouisfed.org/docs/api/fred/release_series.html#offset
pub fn order_by(&mut self, order: OrderBy) -> &mut Builder
[src]
Adds the search_type argument to the request
Arguments
order
- result ranking system
https://research.stlouisfed.org/docs/api/fred/release_series.html#order_by
pub fn sort_order(&mut self, order: SortOrder) -> &mut Builder
[src]
Change the sort order of the data
Arguments
order
- Data sort order enum
https://research.stlouisfed.org/docs/api/fred/release_series.html#sort_order
pub fn filter_variable(&mut self, var: FilterVariable) -> &mut Builder
[src]
Adds the filter_variable argument to the request
Arguments
var
- the varible by which to filter
https://research.stlouisfed.org/docs/api/fred/release_series.html#filter_variable
pub fn filter_value(&mut self, val: &str) -> &mut Builder
[src]
Sets the filter value for the specified filter variable
Results will only include a subset of the original results that match this value for the filter_variable argument.
Arguments
val
- the filter value
https://research.stlouisfed.org/docs/api/fred/release_series.html#filter_value
pub fn tag_name(&mut self, tag: &str) -> &mut Builder
[src]
Adds a tag name to include in the search
Results must match all included tag names.
Arguments
tag
- tag name to add
https://research.stlouisfed.org/docs/api/fred/release_series.html#tag_names
pub fn exclude_tag(&mut self, tag: &str) -> &mut Builder
[src]
Adds a tag name to exclude in the search
Results must match no excluded tag names.
Arguments
tag
- tag name to add
https://research.stlouisfed.org/docs/api/fred/release_series.html#exclude_tag_names
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,