[][src]Struct fred_rs::series::tags::Builder

pub struct Builder { /* fields omitted */ }

Methods

impl Builder[src]

pub fn new() -> Builder[src]

Initializes a new series::search::tags::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::series::search::tags::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/series_tags.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/series_tags.html#realtime_end

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/series_tags.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/series_tags.html#sort_order]9https://research.stlouisfed.org/docs/api/fred/series_tags.html#sort_order

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.