#[non_exhaustive]pub struct MediaThumbnail {
pub url: Url,
pub width: Option<String>,
pub height: Option<String>,
pub time: Option<String>,
}Expand description
Media RSS thumbnail
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: UrlThumbnail URL
§Security Warning
This URL comes from untrusted feed input and has NOT been validated for SSRF. Applications MUST validate URLs before fetching to prevent SSRF attacks.
width: Option<String>Thumbnail width in pixels (raw string value, as in Python feedparser)
height: Option<String>Thumbnail height in pixels (raw string value, as in Python feedparser)
time: Option<String>Time offset in NTP format (time attribute)
Indicates which frame of the media this thumbnail represents.
Implementations§
Trait Implementations§
Source§impl Clone for MediaThumbnail
impl Clone for MediaThumbnail
Source§impl Debug for MediaThumbnail
impl Debug for MediaThumbnail
Source§impl FromAttributes for MediaThumbnail
impl FromAttributes for MediaThumbnail
Auto Trait Implementations§
impl Forget for MediaThumbnail
impl Freeze for MediaThumbnail
impl Move for MediaThumbnail
impl RefUnwindSafe for MediaThumbnail
impl Send for MediaThumbnailwhere
RawVecInner: Send,
impl Sync for MediaThumbnailwhere
RawVecInner: Sync,
impl Unpin for MediaThumbnail
impl UnsafeUnpin for MediaThumbnail
impl UnwindSafe for MediaThumbnailwhere
RawVecInner: UnwindSafe,
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