[][src]Enum rumblr::PostType

pub enum PostType<'a> {
    Text {
        title: Option<&'a str>,
        body: &'a str,
    },
    Photo {
        caption: Option<&'a str>,
        link: Option<&'a str>,
        source: Option<&'a str>,
        data: Option<Vec<&'a str>>,
        data64: Option<&'a str>,
    },
    Quote {
        quote: &'a str,
        source: Option<&'a str>,
    },
    Link {
        title: Option<&'a str>,
        url: &'a str,
        description: Option<&'a str>,
        thumbnail: Option<&'a str>,
        excerpt: Option<&'a str>,
        author: Option<&'a str>,
    },
    Chat {
        title: Option<&'a str>,
        conversation: &'a str,
    },
    Audio {
        caption: Option<&'a str>,
        external_url: Option<&'a str>,
        data: Option<&'a str>,
    },
    Video {
        caption: Option<&'a str>,
        embed: Option<&'a str>,
        data: Option<&'a str>,
    },
}

Variants

Text

Fields of Text

title: Option<&'a str>body: &'a str
Photo

Fields of Photo

caption: Option<&'a str>link: Option<&'a str>source: Option<&'a str>data: Option<Vec<&'a str>>data64: Option<&'a str>
Quote

Fields of Quote

quote: &'a strsource: Option<&'a str>
Link

Fields of Link

title: Option<&'a str>url: &'a strdescription: Option<&'a str>thumbnail: Option<&'a str>excerpt: Option<&'a str>author: Option<&'a str>
Chat

Fields of Chat

title: Option<&'a str>conversation: &'a str
Audio

Fields of Audio

caption: Option<&'a str>external_url: Option<&'a str>data: Option<&'a str>
Video

Fields of Video

caption: Option<&'a str>embed: Option<&'a str>data: Option<&'a str>

Auto Trait Implementations

impl<'a> Send for PostType<'a>

impl<'a> Sync for PostType<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T