Struct rucola::things::account::Subreddit[][src]

pub struct Subreddit {
    pub banner_img: String,
    pub banner_size: Option<[u32; 2]>,
    pub coins: u32,
    pub community_icon: Option<Value>,
    pub default_set: bool,
    pub description: String,
    pub disable_contributor_requests: bool,
    pub display_name: String,
    pub display_name_prefixed: String,
    pub free_form_reports: bool,
    pub header_img: Option<Value>,
    pub header_size: Option<[u32; 2]>,
    pub icon_color: String,
    pub icon_img: String,
    pub icon_size: [u32; 2],
    pub is_default_banner: bool,
    pub is_default_icon: bool,
    pub key_color: String,
    pub link_flair_enabled: bool,
    pub link_flair_position: String,
    pub name: String,
    pub over_18: bool,
    pub previous_names: Vec<String>,
    pub primary_color: String,
    pub public_description: String,
    pub quarantine: bool,
    pub restrict_commenting: bool,
    pub restrict_posting: bool,
    pub show_media: bool,
    pub submit_link_label: String,
    pub submit_text_label: String,
    pub subscribers: u32,
    pub subreddit_type: String,
    pub title: String,
    pub url: String,
    pub user_is_banned: bool,
    pub user_is_contributor: bool,
    pub user_is_muted: bool,
    pub user_is_moderator: bool,
    pub user_is_subscriber: bool,
}

Fields

banner_img: Stringbanner_size: Option<[u32; 2]>

I don’t have an banner at the time of writing this, I’ll assume it’s the same as icon_size

coins: u32community_icon: Option<Value>

This returns null on both my accounts so I have no idea what it should be

default_set: booldescription: Stringdisable_contributor_requests: booldisplay_name: Stringdisplay_name_prefixed: Stringfree_form_reports: boolheader_img: Option<Value>

This returns null on both my accounts so I have no idea what it should be

header_size: Option<[u32; 2]>

I don’t have an header at the time of writing this, I’ll assume it’s the same as icon_size

icon_color: Stringicon_img: Stringicon_size: [u32; 2]is_default_banner: boolis_default_icon: boolkey_color: Stringlink_flair_enabled: boollink_flair_position: Stringname: Stringover_18: boolprevious_names: Vec<String>primary_color: Stringpublic_description: Stringquarantine: boolrestrict_commenting: boolrestrict_posting: boolshow_media: boolsubmit_link_label: Stringsubmit_text_label: Stringsubscribers: u32subreddit_type: Stringtitle: Stringurl: Stringuser_is_banned: booluser_is_contributor: booluser_is_muted: booluser_is_moderator: booluser_is_subscriber: bool

Trait Implementations

impl Debug for Subreddit[src]

impl<'de> Deserialize<'de> for Subreddit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.