pub struct Chapter {
pub start: Duration,
pub end: Option<Duration>,
pub title: Option<String>,
pub image: Option<Image>,
pub link: Option<Link>,
pub hidden: bool,
}Expand description
Chapters follow mostly the Podcast namespace specification.
Fields§
§start: DurationThe starting time of the chapter.
end: Option<Duration>The end time of the chapter.
title: Option<String>The title of this chapter.
image: Option<Image>The image to use as chapter art.
link: Option<Link>Web page or supporting document that’s related to the topic of this chapter.
If this property is set to true, this chapter should not display visibly to the user in either the table of contents or as a jump-to point in the user interface. In the original spec, the inverse of this is called toc.
Trait Implementations§
Source§impl<'a> From<&'a Chapter> for PodcastNamespaceChapter
impl<'a> From<&'a Chapter> for PodcastNamespaceChapter
Source§impl From<PodcastNamespaceChapter> for Chapter
impl From<PodcastNamespaceChapter> for Chapter
Source§fn from(podcast_namespace_chapter: PodcastNamespaceChapter) -> Self
fn from(podcast_namespace_chapter: PodcastNamespaceChapter) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Chapter
Auto Trait Implementations§
impl Freeze for Chapter
impl RefUnwindSafe for Chapter
impl Send for Chapter
impl Sync for Chapter
impl Unpin for Chapter
impl UnwindSafe for Chapter
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