pub struct PlaysQueryParams { /* private fields */ }Expand description
All optional query parameters for making a request to the plays endpoint.
Implementations§
Source§impl PlaysQueryParams
impl PlaysQueryParams
Sourcepub fn min_date(self, min_date: NaiveDate) -> Self
pub fn min_date(self, min_date: NaiveDate) -> Self
Sets the min_date parameter. Will only return plays from after this date.
Sourcepub fn max_date(self, max_date: NaiveDate) -> Self
pub fn max_date(self, max_date: NaiveDate) -> Self
Sets the max_date parameter. Will only return plays from up to this date.
Sourcepub fn sub_type(self, sub_type: ItemSubType) -> Self
pub fn sub_type(self, sub_type: ItemSubType) -> Self
Sets the sub_type parameter. Will only return items of the specified type.
Trait Implementations§
Source§impl Clone for PlaysQueryParams
impl Clone for PlaysQueryParams
Source§fn clone(&self) -> PlaysQueryParams
fn clone(&self) -> PlaysQueryParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlaysQueryParams
impl Debug for PlaysQueryParams
Source§impl Default for PlaysQueryParams
impl Default for PlaysQueryParams
Source§fn default() -> PlaysQueryParams
fn default() -> PlaysQueryParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlaysQueryParams
impl RefUnwindSafe for PlaysQueryParams
impl Send for PlaysQueryParams
impl Sync for PlaysQueryParams
impl Unpin for PlaysQueryParams
impl UnsafeUnpin for PlaysQueryParams
impl UnwindSafe for PlaysQueryParams
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