pub struct GetComments {
pub type_: Option<ListingType>,
pub sort: Option<CommentSortType>,
pub max_depth: Option<i32>,
pub page: Option<i64>,
pub limit: Option<i64>,
pub community_id: Option<CommunityId>,
pub community_name: Option<String>,
pub post_id: Option<PostId>,
pub parent_id: Option<CommentId>,
pub saved_only: Option<bool>,
pub liked_only: Option<bool>,
pub disliked_only: Option<bool>,
}
Expand description
Get a list of comments.
Fields§
§type_: Option<ListingType>
§sort: Option<CommentSortType>
§max_depth: Option<i32>
§page: Option<i64>
§limit: Option<i64>
§community_id: Option<CommunityId>
§community_name: Option<String>
§post_id: Option<PostId>
§parent_id: Option<CommentId>
§saved_only: Option<bool>
§liked_only: Option<bool>
§disliked_only: Option<bool>
Trait Implementations§
Source§impl Clone for GetComments
impl Clone for GetComments
Source§fn clone(&self) -> GetComments
fn clone(&self) -> GetComments
Returns a duplicate of the value. Read more
1.0.0 · 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 GetComments
impl Debug for GetComments
Source§impl Default for GetComments
impl Default for GetComments
Source§fn default() -> GetComments
fn default() -> GetComments
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetComments
impl<'de> Deserialize<'de> for GetComments
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for GetComments
impl Hash for GetComments
Source§impl PartialEq for GetComments
impl PartialEq for GetComments
Source§impl Serialize for GetComments
impl Serialize for GetComments
impl Eq for GetComments
impl StructuralPartialEq for GetComments
Auto Trait Implementations§
impl Freeze for GetComments
impl RefUnwindSafe for GetComments
impl Send for GetComments
impl Sync for GetComments
impl Unpin for GetComments
impl UnwindSafe for GetComments
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