#[non_exhaustive]pub struct PodcastChapters {
pub url: Url,
pub type_: MimeType,
}Expand description
Podcast 2.0 chapters information
Links to chapter markers for time-based navigation within an episode.
Namespace: https://podcastindex.org/namespace/1.0
§Examples
use feedparser_rs::PodcastChapters;
let mut chapters = PodcastChapters::default();
chapters.url = "https://example.com/chapters.json".into();
chapters.type_ = "application/json+chapters".into();
assert_eq!(chapters.url, "https://example.com/chapters.json");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: UrlChapters file URL (url attribute)
§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.
type_: MimeTypeMIME type (type attribute): “application/json+chapters” or “application/xml+chapters”
Trait Implementations§
Source§impl Clone for PodcastChapters
impl Clone for PodcastChapters
Source§impl Debug for PodcastChapters
impl Debug for PodcastChapters
Source§impl Default for PodcastChapters
impl Default for PodcastChapters
impl Eq for PodcastChapters
Source§impl PartialEq for PodcastChapters
impl PartialEq for PodcastChapters
impl StructuralPartialEq for PodcastChapters
Auto Trait Implementations§
impl Forget for PodcastChapters
impl Freeze for PodcastChapters
impl Move for PodcastChapters
impl RefUnwindSafe for PodcastChapters
impl Send for PodcastChapters
impl Sync for PodcastChapters
impl Unpin for PodcastChapters
impl UnsafeUnpin for PodcastChapterswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
impl UnwindSafe for PodcastChapters
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