pub struct Builder { /* private fields */ }
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new() -> Builder
pub fn new() -> Builder
Initializes a new sources::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::sources::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");
Sourcepub fn realtime_start(&mut self, start_date: &str) -> &mut Builder
pub fn realtime_start(&mut self, start_date: &str) -> &mut Builder
Adds a realtime_start argument to the builder
§Arguments
start_date
- date formatted as YYYY-MM-DD
https://research.stlouisfed.org/docs/api/fred/source.html#realtime_start
Sourcepub fn realtime_end(&mut self, end_date: &str) -> &mut Builder
pub fn realtime_end(&mut self, end_date: &str) -> &mut Builder
Adds a realtime_end argument to the builder
§Arguments
end_date
- date formatted as YYYY-MM-DD
https://research.stlouisfed.org/docs/api/fred/source.html#realtime_end
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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