pub struct Marker {
pub kind: MarkerKind,
pub start: Duration,
pub end: Duration,
pub to_end: bool,
}Expand description
A stretch of a movie or episode a viewer may want to skip.
Fields§
§kind: MarkerKind§start: DurationWhere it starts, from the start of the item (start_ms on the
wire).
end: DurationWhere it ends (end_ms on the wire). 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 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