pub struct EmbedMedia {
pub url: String,
pub is_video: bool,
pub mime: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub size: Option<u64>,
pub duration: Option<f64>,
pub poster: Option<String>,
pub sha256: Option<String>,
pub fallbacks: Vec<String>,
}Expand description
A playable or viewable file a post or video carries.
Fields§
§url: String§is_video: bool§mime: Option<String>§width: Option<u32>§height: Option<u32>§size: Option<u64>§duration: Option<f64>§poster: Option<String>§sha256: Option<String>§fallbacks: Vec<String>Trait Implementations§
Source§impl Clone for EmbedMedia
impl Clone for EmbedMedia
Source§impl Debug for EmbedMedia
impl Debug for EmbedMedia
Source§impl PartialEq for EmbedMedia
impl PartialEq for EmbedMedia
Source§impl Serialize for EmbedMedia
impl Serialize for EmbedMedia
impl StructuralPartialEq for EmbedMedia
Auto Trait Implementations§
impl Forget for EmbedMedia
impl Freeze for EmbedMedia
impl Move for EmbedMedia
impl RefUnwindSafe for EmbedMedia
impl Send for EmbedMedia
impl Sync for EmbedMedia
impl Unpin for EmbedMedia
impl UnsafeUnpin for EmbedMedia
impl UnwindSafe for EmbedMedia
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more