Enum tumblr::PostType [] [src]

pub enum PostType {
    Text {
        body: String,
        title: Option<String>,
    },
    Quote {
        source: String,
        text: String,
    },
    Link {
        description: String,
        excerpt: Option<String>,
        link_author: Option<String>,
        link_image: Option<String>,
        link_image_dimensions: Option<ImageDimensions>,
        photos: Option<Vec<PhotoInfo>>,
        publisher: String,
        title: Option<String>,
        url: String,
    },
    Answer {
        answer: String,
        asking_name: String,
        asking_url: Option<String>,
        question: String,
        is_blocks_post_format: bool,
    },
    Video {
        caption: String,
        duration: Option<u64>,
        html5_capable: bool,
        permalink_url: Option<String>,
        player: Vec<VideoEmbed>,
        thumbnail_height: u32,
        thumbnail_url: String,
        thumbnail_width: u32,
        video: Option<Video>,
        video_type: String,
        video_url: Option<String>,
    },
    Audio {
        album: Option<String>,
        album_art: Option<String>,
        artist: Option<String>,
        audio_source_url: Option<String>,
        audio_type: String,
        audio_url: Option<String>,
        caption: String,
        embed: String,
        is_external: Option<bool>,
        player: String,
        plays: u64,
        provider_uri: Option<String>,
        track: Option<String>,
        track_name: Option<String>,
        year: Option<u64>,
    },
    Photo {
        caption: String,
        image_permalink: Option<String>,
        link_url: Option<String>,
        photos: Vec<PhotoInfo>,
        photoset_layout: Option<String>,
    },
    Chat {
        body: String,
        dialogue: Vec<Dialogue>,
        title: Option<String>,
    },
}

Variants

Fields of Text

Fields of Quote

Fields of Link

Fields of Answer

Fields of Video

Fields of Audio

Fields of Photo

Fields of Chat

Trait Implementations

impl Debug for PostType
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for PostType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for PostType

impl Sync for PostType