CommentData

Struct CommentData 

Source
pub struct CommentData {
Show 49 fields pub total_awards_received: Option<i32>, pub approved_at_utc: Option<f64>, pub link_id: Option<String>, pub author_flair_template_id: Option<String>, pub likes: Option<bool>, pub saved: Option<bool>, pub id: Option<String>, pub gilded: Option<i32>, pub archived: Option<bool>, pub no_follow: Option<bool>, pub author: Option<String>, pub can_mod_post: Option<bool>, pub created_utc: Option<f64>, pub send_replies: Option<bool>, pub parent_id: Option<String>, pub score: Option<i32>, pub author_fullname: Option<String>, pub over_18: Option<bool>, pub approved_by: Option<String>, pub subreddit_id: Option<String>, pub body: Option<String>, pub link_title: Option<String>, pub name: Option<String>, pub author_patreon_flair: Option<bool>, pub downs: Option<i32>, pub is_submitter: Option<bool>, pub body_html: Option<String>, pub distinguished: Option<String>, pub stickied: Option<bool>, pub author_premium: Option<bool>, pub can_gild: Option<bool>, pub subreddit: Option<String>, pub author_flair_text_color: Option<String>, pub score_hidden: Option<bool>, pub permalink: Option<String>, pub num_reports: Option<i32>, pub link_permalink: Option<String>, pub link_author: Option<String>, pub subreddit_name_prefixed: Option<String>, pub author_flair_text: Option<String>, pub link_url: Option<String>, pub created: Option<f64>, pub collapsed: Option<bool>, pub controversiality: Option<i32>, pub locked: Option<bool>, pub quarantine: Option<bool>, pub subreddit_type: Option<String>, pub ups: Option<i32>, pub replies: Option<MaybeReplies>,
}
Expand description

SubredditCommentsData Everything is an option to deal with both latest_comments and article_comments

Fields§

§total_awards_received: Option<i32>

Total awards

§approved_at_utc: Option<f64>

Approved at (UTC)

§link_id: Option<String>

Link id

§author_flair_template_id: Option<String>

What is this

§likes: Option<bool>

Likes

§saved: Option<bool>

Saved

§id: Option<String>

ID

§gilded: Option<i32>

Gilded

§archived: Option<bool>

Archived

§no_follow: Option<bool>

No follow

§author: Option<String>

Auuthor

§can_mod_post: Option<bool>

Can mod post

§created_utc: Option<f64>

Created (UTC)

§send_replies: Option<bool>

Send replies

§parent_id: Option<String>

Parent ID

§score: Option<i32>

Score

§author_fullname: Option<String>

Author fullname

§over_18: Option<bool>

Over 18

§approved_by: Option<String>

Approved by

§subreddit_id: Option<String>

Subreddit ID

§body: Option<String>

Body

§link_title: Option<String>

Link title

§name: Option<String>

Name

§author_patreon_flair: Option<bool>

Patreon flair

§downs: Option<i32>

Downs?

§is_submitter: Option<bool>

Is submitter

§body_html: Option<String>

HTML

§distinguished: Option<String>

Distinguished

§stickied: Option<bool>

Stickied

§author_premium: Option<bool>

Premium

§can_gild: Option<bool>

Can guild

§subreddit: Option<String>

Subreddit

§author_flair_text_color: Option<String>

Flair color

§score_hidden: Option<bool>

Score hidden

§permalink: Option<String>

Permalink

§num_reports: Option<i32>

Number of reports

§link_permalink: Option<String>

Permalink

§link_author: Option<String>

Author link

§subreddit_name_prefixed: Option<String>

Sub name

§author_flair_text: Option<String>

Author flair

§link_url: Option<String>

Link url

§created: Option<f64>

Created

§collapsed: Option<bool>

Collapsed

§controversiality: Option<i32>

Controversiality

§locked: Option<bool>

Locked

§quarantine: Option<bool>

Quarantine

§subreddit_type: Option<String>

Subreddit type

§ups: Option<i32>

UPS?

§replies: Option<MaybeReplies>

Replies

Trait Implementations§

Source§

impl Debug for CommentData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CommentData

Source§

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 Serialize for CommentData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,