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
Auto Trait Implementations
impl<'a> RefUnwindSafe for PostType<'a>
impl<'a> Send for PostType<'a>
impl<'a> Sync for PostType<'a>
impl<'a> Unpin for PostType<'a>
impl<'a> UnwindSafe for PostType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more