pub struct CommentListParams { /* private fields */ }Expand description
Parameters for /x/v2/reply.
Implementations§
Source§impl CommentListParams
impl CommentListParams
pub fn new(target: CommentTarget) -> Self
pub fn with_page(self, page: u32) -> BpiResult<Self>
pub fn with_page_size(self, page_size: u32) -> BpiResult<Self>
pub fn with_sort(self, sort: CommentSort) -> Self
pub fn without_hot(self, nohot: bool) -> Self
Trait Implementations§
Source§impl Clone for CommentListParams
impl Clone for CommentListParams
Source§fn clone(&self) -> CommentListParams
fn clone(&self) -> CommentListParams
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 moreimpl Copy for CommentListParams
Source§impl Debug for CommentListParams
impl Debug for CommentListParams
impl Eq for CommentListParams
Source§impl PartialEq for CommentListParams
impl PartialEq for CommentListParams
Source§fn eq(&self, other: &CommentListParams) -> bool
fn eq(&self, other: &CommentListParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommentListParams
Auto Trait Implementations§
impl Freeze for CommentListParams
impl RefUnwindSafe for CommentListParams
impl Send for CommentListParams
impl Sync for CommentListParams
impl Unpin for CommentListParams
impl UnsafeUnpin for CommentListParams
impl UnwindSafe for CommentListParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.