pub struct Chapter {
pub id: i64,
pub time_base: Ratio,
pub start: i64,
pub end: i64,
pub tags: ChapterTags,
}Expand description
Chapter parsed
Fields§
§id: i64This is an identifier for the chapter. It’s a unique number that distinguishes this chapter from others.
time_base: RatioThis represents the time base of the chapter, which is a rational number. Time base is used to convert time stamps into seconds. It’s usually formatted as a fraction, like “1/1000”, meaning each unit in the time stamps is 1/1000 of a second.
start: i64This is the start time of the chapter, in units of time_base. To get the start time in seconds, you’d multiply this value by the time base.
end: i64This is the end time of the chapter, in units of time_base. Similar to start, this can be converted to seconds.
This holds additional metadata tags associated with the chapter, such as its title.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chapter
impl<'de> Deserialize<'de> for Chapter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Chapter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)