Struct fml::types::Article

source ·
pub struct Article {
Show 37 fields pub apikey: Option<String>, pub area: Option<String>, pub author: Option<String>, pub bitly: Option<String>, pub city: Option<String>, pub content: String, pub content_hidden: String, pub country: Option<String>, pub countrycode: Option<String>, pub created: String, pub flag: u32, pub gender: Option<u8>, pub id: u64, pub images: Vec<ArticleImage>, pub ip: Option<String>, pub keywords: Vec<ArticleKeyword>, pub layout: u32, pub metrics: ArticleMetrics, pub openview: u32, pub origin: Option<String>, pub paragraphs: Vec<Value>, pub published: String, pub site: u32, pub siteorig: Option<Value>, pub slug: String, pub social_truncate: bool, pub spicy: bool, pub status: u32, pub title: Option<String>, pub article_type: u32, pub updated: String, pub url: String, pub user: u64, pub usermetrics: ArticleUsermetrics, pub videos: Vec<Value>, pub vote: u32, pub unknown: HashMap<String, Value>,
}
Expand description

An FML article

Fields§

§apikey: Option<String>§area: Option<String>§author: Option<String>§bitly: Option<String>§city: Option<String>§content: String§content_hidden: String§country: Option<String>§countrycode: Option<String>§created: String§flag: u32§gender: Option<u8>§id: u64§images: Vec<ArticleImage>§ip: Option<String>§keywords: Vec<ArticleKeyword>§layout: u32§metrics: ArticleMetrics§openview: u32§origin: Option<String>§paragraphs: Vec<Value>§published: String§site: u32§siteorig: Option<Value>§slug: String§social_truncate: bool§spicy: bool§status: u32§title: Option<String>§article_type: u32§updated: String§url: String§user: u64§usermetrics: ArticleUsermetrics§videos: Vec<Value>§vote: u32§unknown: HashMap<String, Value>

Trait Implementations§

source§

impl Debug for Article

source§

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

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

impl<'de> Deserialize<'de> for Article

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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.

§

impl<T> Instrument for T

§

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

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

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 Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<T> WithSubscriber for T

§

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
§

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 Twhere T: for<'de> Deserialize<'de>,