pub struct PodcastAlternateEnclosureSource {
pub uri: Url,
pub content_type: Option<MimeType>,
}Expand description
Podcast 2.0 alternate enclosure source
A single source URI within a podcast:alternateEnclosure element.
Fields§
§uri: UrlSource URI (uri attribute, required)
§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.
content_type: Option<MimeType>Optional MIME type override (contentType attribute)
Trait Implementations§
Source§impl Clone for PodcastAlternateEnclosureSource
impl Clone for PodcastAlternateEnclosureSource
Source§fn clone(&self) -> PodcastAlternateEnclosureSource
fn clone(&self) -> PodcastAlternateEnclosureSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PodcastAlternateEnclosureSource
impl Default for PodcastAlternateEnclosureSource
Source§fn default() -> PodcastAlternateEnclosureSource
fn default() -> PodcastAlternateEnclosureSource
Returns the “default value” for a type. Read more
Source§impl PartialEq for PodcastAlternateEnclosureSource
impl PartialEq for PodcastAlternateEnclosureSource
Source§fn eq(&self, other: &PodcastAlternateEnclosureSource) -> bool
fn eq(&self, other: &PodcastAlternateEnclosureSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PodcastAlternateEnclosureSource
impl StructuralPartialEq for PodcastAlternateEnclosureSource
Auto Trait Implementations§
impl Freeze for PodcastAlternateEnclosureSource
impl RefUnwindSafe for PodcastAlternateEnclosureSource
impl Send for PodcastAlternateEnclosureSource
impl Sync for PodcastAlternateEnclosureSource
impl Unpin for PodcastAlternateEnclosureSource
impl UnsafeUnpin for PodcastAlternateEnclosureSource
impl UnwindSafe for PodcastAlternateEnclosureSource
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