pub struct Chapter {
    pub uid: u64,
    pub time_start: Duration,
    pub time_end: Option<Duration>,
    pub hidden: bool,
    pub enabled: bool,
    pub segment_uid: Option<Vec<u8>>,
    pub segment_edition_uid: Option<u64>,
    pub display: Vec<ChapterDisplay>,
}
Expand description

An individual chapter point

Fields

uid: u64

The chapter’s UID

time_start: Duration

Timestamp of the start of the chapter

time_end: Option<Duration>

Timestamp of the end of the chapter

hidden: bool

Whether the chapter point should be hidden in the user interface

enabled: bool

Whether the chapter point should be enabled in the user interface

segment_uid: Option<Vec<u8>>

Unique ID of the segment to be played during this chapter

segment_edition_uid: Option<u64>

Unique ID of the edition to play from the linked segment

display: Vec<ChapterDisplay>

Contains all strings to use for displaying chapter

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.