pub struct Params {
pub start_date: Option<NaiveDate>,
pub end_date: Option<NaiveDate>,
pub page: Option<u32>,
}Fields§
§start_date: Option<NaiveDate>Filter the results with a start date.
end_date: Option<NaiveDate>Filter the results with an end date.
page: Option<u32>Which page to query.
Implementations§
Source§impl Params
impl Params
pub fn set_start_date(&mut self, value: NaiveDate)
pub fn with_start_date(self, value: NaiveDate) -> Self
pub fn set_end_date(&mut self, value: NaiveDate)
pub fn with_end_date(self, value: NaiveDate) -> Self
pub fn set_page(&mut self, value: u32)
pub fn with_page(self, value: u32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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