pub struct ThreadQueryParams { /* private fields */ }Expand description
All optional query parameters for making a request to the thread endpoint.
Implementations§
Source§impl ThreadQueryParams
impl ThreadQueryParams
Sourcepub fn min_post_id(self, min_post_id: u64) -> Self
pub fn min_post_id(self, min_post_id: u64) -> Self
Sets the min_post_id query parameter. When set, only include posts with an ID equal to or
greater than the requested ID will be returned with the thread.
Sourcepub fn min_post_date(self, min_post_date: NaiveDate) -> Self
pub fn min_post_date(self, min_post_date: NaiveDate) -> Self
Sets the min_post_date query parameter. When set, only include posts with a post date
equal to or after the the requested ID will be returned with the thread.
Sourcepub fn min_post_date_time(self, min_post_date_time: NaiveDateTime) -> Self
pub fn min_post_date_time(self, min_post_date_time: NaiveDateTime) -> Self
Sets the min_post_date query parameter. When set, only include posts with a post date
equal to or after the the requested ID will be returned with the thread.
Sourcepub fn post_count(self, post_count: u64) -> Self
pub fn post_count(self, post_count: u64) -> Self
Sets the post_count query parameter. If set then the number of returned posts will be
limited to the requested amount. Max 1000. If unset up to the max of 1000 will be returned.
Trait Implementations§
Source§impl Clone for ThreadQueryParams
impl Clone for ThreadQueryParams
Source§fn clone(&self) -> ThreadQueryParams
fn clone(&self) -> ThreadQueryParams
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 ThreadQueryParams
impl Debug for ThreadQueryParams
Source§impl Default for ThreadQueryParams
impl Default for ThreadQueryParams
Source§fn default() -> ThreadQueryParams
fn default() -> ThreadQueryParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreadQueryParams
impl RefUnwindSafe for ThreadQueryParams
impl Send for ThreadQueryParams
impl Sync for ThreadQueryParams
impl Unpin for ThreadQueryParams
impl UnsafeUnpin for ThreadQueryParams
impl UnwindSafe for ThreadQueryParams
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