Skip to main content

Thing

Struct Thing 

Source
pub struct Thing {
Show 101 fields pub id: String, pub subreddit: String, pub permalink: String, pub author: String, pub author_fullname: String, pub ups: i32, pub downs: usize, pub saved: bool, pub gilded: usize, pub score: Option<i32>, pub clicked: Option<bool>, pub title: Option<String>, pub is_self: Option<bool>, pub archived: bool, pub no_follow: bool, pub is_crosspostable: Option<bool>, pub pinned: Option<bool>, pub over_18: Option<bool>, pub is_video: Option<bool>, pub link_flair_richtext: Option<Vec<LinkFlairRichtext>>, pub subreddit_name_prefixed: String, pub name: String, pub quarantine: Option<bool>, pub link_flair_text_color: Option<String>, pub upvote_ratio: Option<f32>, pub subreddit_type: String, pub total_awards_received: usize, pub link_flair_background_color: Option<String>, pub created: f64, pub can_gild: bool, pub spoiler: Option<bool>, pub locked: bool, pub is_robot_indexable: Option<bool>, pub is_reddit_media_domain: Option<bool>, pub is_meta: Option<bool>, pub media_only: Option<bool>, pub num_comments: Option<usize>, pub send_replies: bool, pub whitelist_status: Option<String>, pub subreddit_id: String, pub contest_mode: Option<bool>, pub mod_reports: Vec<String>, pub author_patreon_flair: bool, pub parent_whitelist_status: Option<String>, pub stickied: bool, pub subreddit_subscribers: Option<usize>, pub created_utc: f64, pub is_original_content: Option<bool>, pub author_flair_type: String, pub user_reports: Vec<String>, pub treatment_tags: Vec<String>, pub num_crossposts: Option<usize>, pub awarders: Vec<String>, pub hidden: Option<bool>, pub pwls: Option<usize>, pub hide_score: Option<bool>, pub domain: Option<String>, pub allow_live_comments: Option<bool>, pub link_flair_type: Option<String>, pub wls: Option<usize>, pub selftext: Option<String>, pub url: Option<String>, pub replies: Option<Listing>, pub body: Option<String>, pub body_html: Option<String>, pub thumbnail_width: Option<usize>, pub author_flair_template_id: Option<String>, pub post_hint: Option<String>, pub approved_at_utc: Option<String>, pub link_flair_css_class: Option<String>, pub thumbnail_height: Option<usize>, pub mod_reason_title: Option<String>, pub mod_note: Option<String>, pub banned_by: Option<String>, pub category: Option<String>, pub selftext_html: Option<String>, pub likes: Option<String>, pub suggested_sort: Option<String>, pub banned_at_utc: Option<f64>, pub top_awarded_type: Option<String>, pub view_count: Option<usize>, pub link_flair_template_id: Option<String>, pub author_flair_text: Option<String>, pub removed_by: Option<String>, pub num_reports: Option<usize>, pub distinguished: Option<String>, pub mod_reason_by: Option<String>, pub removal_reason: Option<String>, pub report_reasons: Option<String>, pub author_flair_background_color: Option<String>, pub discussion_type: Option<String>, pub author_flair_text_color: Option<String>, pub content_categories: Option<String>, pub removed_by_category: Option<String>, pub preview: Preview, pub all_awardings: Vec<String>, pub gildings: String, pub media: Option<String>, pub media_metadata: Vec<String>, pub secure_media: Option<String>, pub media_embed: Vec<String>,
}

Fields§

§id: String§subreddit: String§permalink: String§author: String§author_fullname: String§ups: i32§downs: usize§saved: bool§gilded: usize§score: Option<i32>§clicked: Option<bool>§title: Option<String>§is_self: Option<bool>§archived: bool§no_follow: bool§is_crosspostable: Option<bool>§pinned: Option<bool>§over_18: Option<bool>§is_video: Option<bool>§link_flair_richtext: Option<Vec<LinkFlairRichtext>>§subreddit_name_prefixed: String§name: String§quarantine: Option<bool>§link_flair_text_color: Option<String>§upvote_ratio: Option<f32>§subreddit_type: String§total_awards_received: usize§link_flair_background_color: Option<String>§created: f64§can_gild: bool§spoiler: Option<bool>§locked: bool§is_robot_indexable: Option<bool>§is_reddit_media_domain: Option<bool>§is_meta: Option<bool>§media_only: Option<bool>§num_comments: Option<usize>§send_replies: bool§whitelist_status: Option<String>§subreddit_id: String§contest_mode: Option<bool>§mod_reports: Vec<String>§author_patreon_flair: bool§parent_whitelist_status: Option<String>§stickied: bool§subreddit_subscribers: Option<usize>§created_utc: f64§is_original_content: Option<bool>§author_flair_type: String§user_reports: Vec<String>§treatment_tags: Vec<String>§num_crossposts: Option<usize>§awarders: Vec<String>§hidden: Option<bool>§pwls: Option<usize>§hide_score: Option<bool>§domain: Option<String>§allow_live_comments: Option<bool>§link_flair_type: Option<String>§wls: Option<usize>§selftext: Option<String>§url: Option<String>§replies: Option<Listing>§body: Option<String>§body_html: Option<String>§thumbnail_width: Option<usize>§author_flair_template_id: Option<String>§post_hint: Option<String>§approved_at_utc: Option<String>§link_flair_css_class: Option<String>§thumbnail_height: Option<usize>§mod_reason_title: Option<String>§mod_note: Option<String>§banned_by: Option<String>§category: Option<String>§selftext_html: Option<String>§likes: Option<String>§suggested_sort: Option<String>§banned_at_utc: Option<f64>§top_awarded_type: Option<String>§view_count: Option<usize>§link_flair_template_id: Option<String>§author_flair_text: Option<String>§removed_by: Option<String>§num_reports: Option<usize>§distinguished: Option<String>§mod_reason_by: Option<String>§removal_reason: Option<String>§report_reasons: Option<String>§author_flair_background_color: Option<String>§discussion_type: Option<String>§author_flair_text_color: Option<String>§content_categories: Option<String>§removed_by_category: Option<String>§preview: Preview§all_awardings: Vec<String>§gildings: String§media: Option<String>§media_metadata: Vec<String>§secure_media: Option<String>§media_embed: Vec<String>

Trait Implementations§

Source§

impl Clone for Thing

Source§

fn clone(&self) -> Thing

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Thing

Source§

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

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

impl<'de> Deserialize<'de> for Thing

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 Thing

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§

§

impl Freeze for Thing

§

impl RefUnwindSafe for Thing

§

impl Send for Thing

§

impl Sync for Thing

§

impl Unpin for Thing

§

impl UnsafeUnpin for Thing

§

impl UnwindSafe for Thing

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

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