pub struct Marker {
pub kind: MarkerKind,
pub start_ms: u64,
pub end_ms: u64,
pub to_end: bool,
}Expand description
A stretch of a movie or episode a viewer may want to skip (P2-10).
Fields§
§kind: MarkerKind§start_ms: u64Where it starts, in milliseconds from the start of the item.
end_ms: u64Where it ends. On a marker that runs to the end this may be a
little off the item’s duration, either way: go by to_end.
to_end: boolNothing follows it: credits with no scene after them. The catalog
says so; it is never worked out from end_ms and the duration.
Trait Implementations§
impl Copy for Marker
Source§impl<'de> Deserialize<'de> for Marker
impl<'de> Deserialize<'de> for Marker
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 Marker
impl StructuralPartialEq for Marker
Auto Trait Implementations§
impl Freeze for Marker
impl RefUnwindSafe for Marker
impl Send for Marker
impl Sync for Marker
impl Unpin for Marker
impl UnsafeUnpin for Marker
impl UnwindSafe for Marker
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