[][src]Struct wordpress::Post

pub struct Post {
    pub date: NaiveDateTime,
    pub date_gmt: NaiveDateTime,
    pub id: u64,
    pub link: Url,
    pub modified: NaiveDateTime,
    pub modified_gmt: NaiveDateTime,
    pub slug: String,
    pub status: String,
    pub password: Option<String>,
    pub permalink_template: Option<String>,
    pub generated_slug: Option<String>,
    pub title: PostTitle,
    pub content: PostContent,
    pub author: u64,
    pub featured_media: u64,
    pub comment_status: String,
    pub ping_status: String,
    pub format: Option<String>,
    pub sticky: Option<bool>,
    pub template: String,
    pub categories: Option<Vec<u64>>,
    pub unknown: HashMap<String, Value>,
    // some fields omitted
}

A wordpress post

Fields

date: NaiveDateTimedate_gmt: NaiveDateTimeid: u64link: Urlmodified: NaiveDateTimemodified_gmt: NaiveDateTimeslug: Stringstatus: Stringpassword: Option<String>permalink_template: Option<String>generated_slug: Option<String>title: PostTitlecontent: PostContentauthor: u64featured_media: u64comment_status: Stringping_status: Stringformat: Option<String>sticky: Option<bool>template: Stringcategories: Option<Vec<u64>>unknown: HashMap<String, Value>

Unknown KVs

Trait Implementations

impl Debug for Post[src]

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

impl Serialize for Post[src]

Auto Trait Implementations

impl RefUnwindSafe for Post[src]

impl Send for Post[src]

impl Sync for Post[src]

impl Unpin for Post[src]

impl UnwindSafe for Post[src]

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.