#[non_exhaustive]pub struct RedditPostCommentsOptions {
pub sort: Option<String>,
pub limit: Option<i64>,
pub depth: Option<i64>,
pub freshness: Option<Freshness>,
pub request_options: RequestOptions,
}Expand description
Options for reddit.post.comments.list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sort: Option<String>Result ordering for this operation. One of confidence, top, new,
controversial, old, or qa. The API default is confidence.
limit: Option<i64>Maximum number of results to return. The API default is 25. Accepts 1 to 100.
depth: Option<i64>Maximum depth of nested replies. Accepts 0 to 10.
freshness: Option<Freshness>Maximum accepted data age. The default is 24h.
request_options: RequestOptionsRetry and timeout controls for this request.
Implementations§
Source§impl RedditPostCommentsOptions
impl RedditPostCommentsOptions
Sourcepub fn sort(self, value: impl Into<String>) -> Self
pub fn sort(self, value: impl Into<String>) -> Self
Result ordering for this operation. One of confidence, top, new,
controversial, old, or qa. The API default is confidence.
Sourcepub fn limit(self, value: i64) -> Self
pub fn limit(self, value: i64) -> Self
Maximum number of results to return. The API default is 25. Accepts 1 to 100.
Sourcepub fn freshness(self, value: Freshness) -> Self
pub fn freshness(self, value: Freshness) -> Self
Maximum accepted data age. The default is 24h.
Sourcepub fn max_retries(self, value: u32) -> Self
pub fn max_retries(self, value: u32) -> Self
Sets the retry attempts after the first request.
Trait Implementations§
Source§impl Clone for RedditPostCommentsOptions
impl Clone for RedditPostCommentsOptions
Source§impl Debug for RedditPostCommentsOptions
impl Debug for RedditPostCommentsOptions
Source§impl Default for RedditPostCommentsOptions
impl Default for RedditPostCommentsOptions
impl StructuralPartialEq for RedditPostCommentsOptions
Auto Trait Implementations§
impl Forget for RedditPostCommentsOptions
impl Freeze for RedditPostCommentsOptions
impl Move for RedditPostCommentsOptions
impl RefUnwindSafe for RedditPostCommentsOptions
impl Send for RedditPostCommentsOptions
impl Sync for RedditPostCommentsOptions
impl Unpin for RedditPostCommentsOptions
impl UnsafeUnpin for RedditPostCommentsOptions
impl UnwindSafe for RedditPostCommentsOptions
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