pub struct Enclosure {
pub url: Url,
pub length: Option<String>,
pub enclosure_type: Option<MimeType>,
pub title: Option<String>,
pub duration: Option<String>,
}Expand description
Enclosure (attached media file)
Fields§
§url: UrlEnclosure URL
length: Option<String>File size in bytes (raw string value, as in Python feedparser)
enclosure_type: Option<MimeType>MIME type
title: Option<String>Attachment title (JSON Feed only)
duration: Option<String>Duration in seconds as raw string (JSON Feed duration_in_seconds)
Trait Implementations§
Source§impl FromAttributes for Enclosure
impl FromAttributes for Enclosure
Auto Trait Implementations§
impl Freeze for Enclosure
impl RefUnwindSafe for Enclosure
impl Send for Enclosure
impl Sync for Enclosure
impl Unpin for Enclosure
impl UnsafeUnpin for Enclosure
impl UnwindSafe for Enclosure
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