Struct scoopit_api::types::Post

source ·
pub struct Post {
Show 33 fields pub id: i64, pub content: String, pub html_content: String, pub html_fragment: Option<String>, pub insight: Option<String>, pub html_insight: Option<String>, pub title: String, pub thanks_count: u32, pub reactions_count: u32, pub url: Option<String>, pub scoop_url: String, pub scoop_short_url: String, pub small_image_url: Option<String>, pub medium_image_url: Option<String>, pub image_url: Option<String>, pub large_image_url: Option<String>, pub image_width: Option<u32>, pub image_height: Option<u32>, pub image_size: Option<String>, pub image_position: Option<String>, pub tags: Option<Vec<String>>, pub comments_count: u32, pub page_views: Option<u32>, pub page_clicks: Option<u32>, pub author: Option<User>, pub is_user_suggestion: bool, pub suggested_by: Option<User>, pub twitter_author: Option<String>, pub publication_date: Option<i64>, pub curation_date: i64, pub topic_id: u64, pub topic: Option<Box<Topic>>, pub metadata: Option<HashMap<String, String>>,
}

Fields

id: i64content: Stringhtml_content: Stringhtml_fragment: Option<String>insight: Option<String>html_insight: Option<String>title: Stringthanks_count: u32reactions_count: u32url: Option<String>scoop_url: Stringscoop_short_url: Stringsmall_image_url: Option<String>medium_image_url: Option<String>image_url: Option<String>large_image_url: Option<String>image_width: Option<u32>image_height: Option<u32>image_size: Option<String>image_position: Option<String>tags: Option<Vec<String>>comments_count: u32page_views: Option<u32>page_clicks: Option<u32>author: Option<User>is_user_suggestion: boolsuggested_by: Option<User>twitter_author: Option<String>publication_date: Option<i64>curation_date: i64topic_id: u64topic: Option<Box<Topic>>metadata: Option<HashMap<String, String>>

Trait Implementations

source

impl Clone for Post

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
source

impl Debug for Post

Formats the value using the given formatter. Read more
source

impl<'de> Deserialize<'de> for Post

Deserialize this value from the given Serde deserializer. Read more
source

impl Serialize for Post

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for Post

impl Send for Post

impl Sync for Post

impl Unpin for Post

impl UnwindSafe for Post

Blanket Implementations

source

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

Gets the TypeId of self. Read more
source

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

Immutably borrows from an owned value. Read more
source

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

Mutably borrows from an owned value. Read more
source

impl<T> From<T> for T

Returns the argument unchanged.

source

impl<T> Instrument for T

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source

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

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
source

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

The type returned in the event of a conversion error.
Performs the conversion.
source

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

The type returned in the event of a conversion error.
Performs the conversion.
source

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
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>,