pub struct Preview {
pub fallback: Option<String>,
pub footer: Option<String>,
pub header: Option<String>,
pub header_link: Option<String>,
pub html_text: Option<String>,
pub text: Option<String>,
pub title: Option<String>,
pub title_link: Option<String>,
}
Expand description
Preview : A collection of rich text that will be displayed as a preview to another app. This is read-only except for a small group of whitelisted apps.
Fields
fallback: Option<String>
Some fallback text to display if unable to display the full preview.
Text to display in the footer.
header: Option<String>
Text to display in the header.
header_link: Option<String>
Where the header will link to.
html_text: Option<String>
HTML formatted text for the body of the preview.
text: Option<String>
Text for the body of the preview.
title: Option<String>
Text to display as the title.
title_link: Option<String>
Where to title will link to.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Preview
impl<'de> Deserialize<'de> for Preview
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Preview
Auto Trait Implementations
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnwindSafe for Preview
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