Link

Struct Link 

Source
pub struct Link {
Show 85 fields pub approved_at_utc: Option<DateTime<Utc>>, pub selftext: String, pub gilded: bool, pub title: String, pub pwls: Option<u32>, pub thumbnail: LinkThumbnail, pub post_link: PostLink, pub author: Author, pub flair: LinkFlair, pub subreddit_info: SubredditInfo, pub mod_info: ModInfo, pub allow_live_comments: bool, pub archived: bool, pub can_gild: bool, pub can_mod_post: bool, pub clicked: bool, pub contest_mode: bool, pub hidden: bool, pub hide_score: bool, pub is_created_from_ads_ui: bool, pub is_crosspostable: bool, pub is_meta: bool, pub is_original_content: bool, pub is_reddit_media_domain: bool, pub is_robot_indexable: bool, pub is_self: bool, pub is_video: bool, pub locked: bool, pub no_follow: bool, pub over_18: bool, pub pinned: bool, pub quarantine: bool, pub saved: bool, pub send_replies: bool, pub spoiler: bool, pub stickied: bool, pub visited: bool, pub name: FullName, pub ups: u32, pub downs: u32, pub upvote_ratio: f32, pub total_awards_received: u32, pub score: u32, pub num_comments: u32, pub num_crossposts: u32, pub media_metadata: Option<MediaMetadatas>, pub media_only: bool, pub media: Option<Media>, pub media_embed: Option<MediaEmbed>, pub secure_media: Option<Media>, pub secure_media_embed: Option<MediaEmbed>, pub user_reports: Vec<UserReport>, pub category: Option<()>, pub approved_by: Option<()>, pub edited: Option<DateTime<Utc>>, pub gildings: Gildings, pub content_categories: Option<Vec<ContentCategories>>, pub wls: Option<u32>, pub removed_by_category: Option<()>, pub banned_by: Option<()>, pub domain: String, pub selftext_html: Option<String>, pub likes: Option<()>, pub suggested_sort: Option<Sort>, pub banned_at_utc: Option<()>, pub view_count: Option<()>, pub all_awardings: Vec<Awarding>, pub awarders: Vec<()>, pub top_awarded_type: Option<TopAwardedType>, pub treatment_tags: Vec<()>, pub removed_by: Option<()>, pub num_reports: Option<()>, pub distinguished: Option<Distinguished>, pub removal_reason: Option<()>, pub id: String, pub report_reasons: Option<()>, pub discussion_type: Option<()>, pub whitelist_status: Option<WhitelistStatus>, pub parent_whitelist_status: Option<WhitelistStatus>, pub permalink: IriRelativeString, pub created: DateTime<Utc>, pub created_utc: DateTime<Utc>, pub post_hint: Option<PostHint>, pub preview: Option<Preview>, pub url_overridden_by_dest: Option<IriString>,
}

Fields§

§approved_at_utc: Option<DateTime<Utc>>§selftext: String§gilded: bool§title: String§pwls: Option<u32>§thumbnail: LinkThumbnail§post_link: PostLink§author: Author§flair: LinkFlair§subreddit_info: SubredditInfo§mod_info: ModInfo§allow_live_comments: bool§archived: bool§can_gild: bool§can_mod_post: bool§clicked: bool§contest_mode: bool§hidden: bool§hide_score: bool§is_created_from_ads_ui: bool§is_crosspostable: bool§is_meta: bool§is_original_content: bool§is_reddit_media_domain: bool§is_robot_indexable: bool§is_self: bool§is_video: bool§locked: bool§no_follow: bool§over_18: bool§pinned: bool§quarantine: bool§saved: bool§send_replies: bool§spoiler: bool§stickied: bool§visited: bool§name: FullName§ups: u32§downs: u32§upvote_ratio: f32§total_awards_received: u32§score: u32§num_comments: u32§num_crossposts: u32§media_metadata: Option<MediaMetadatas>§media_only: bool§media: Option<Media>§media_embed: Option<MediaEmbed>§secure_media: Option<Media>§secure_media_embed: Option<MediaEmbed>§user_reports: Vec<UserReport>§category: Option<()>§approved_by: Option<()>§edited: Option<DateTime<Utc>>§gildings: Gildings§content_categories: Option<Vec<ContentCategories>>§wls: Option<u32>§removed_by_category: Option<()>§banned_by: Option<()>§domain: String§selftext_html: Option<String>§likes: Option<()>§suggested_sort: Option<Sort>§banned_at_utc: Option<()>§view_count: Option<()>§all_awardings: Vec<Awarding>§awarders: Vec<()>§top_awarded_type: Option<TopAwardedType>§treatment_tags: Vec<()>§removed_by: Option<()>§num_reports: Option<()>§distinguished: Option<Distinguished>

“moderator”

§removal_reason: Option<()>§id: String

REVIEW: base 36? “q4550i”

§report_reasons: Option<()>§discussion_type: Option<()>§whitelist_status: Option<WhitelistStatus>§parent_whitelist_status: Option<WhitelistStatus>§permalink: IriRelativeString§created: DateTime<Utc>§created_utc: DateTime<Utc>§post_hint: Option<PostHint>

REVIEW: Condense post_hint and preview?

§preview: Option<Preview>§url_overridden_by_dest: Option<IriString>

Trait Implementations§

Source§

fn clone(&self) -> Link

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§

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

Formats the value using the given formatter. Read more
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§

fn eq(&self, other: &Link) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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> 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> 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> 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<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>,