#[non_exhaustive]pub struct Enclosure {
pub url: Url,
pub length: Option<String>,
pub enclosure_type: Option<MimeType>,
pub title: Option<String>,
pub duration: Option<String>,
pub json_extensions: HashMap<String, Value>,
}Expand description
Enclosure (attached media file)
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: 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)
json_extensions: HashMap<String, Value>Custom JSON Feed _-prefixed members of this attachment.
Captured under the same caps as super::entry::Entry::json_extensions;
empty for every other format.
Implementations§
Trait Implementations§
Source§impl FromAttributes for Enclosure
impl FromAttributes for Enclosure
Auto Trait Implementations§
impl Forget for Enclosure
impl Freeze for Enclosure
impl Move for Enclosure
impl RefUnwindSafe for Enclosure
impl Send for Enclosure
impl Sync for Enclosure
impl Unpin for Enclosure
impl UnsafeUnpin for Enclosurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
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