pub struct OfflineWatch {
pub id: MediaId,
pub position_ms: Option<u64>,
pub watched: Option<bool>,
pub at: i64,
}Expand description
Where a device got to in an item while it had no server
(SyncOfflineWatch).
Fields§
§id: MediaIdA film or an episode.
position_ms: Option<u64>Where it stopped; None when only watched changed.
watched: Option<bool>Marked watched (true) or unwatched (false) on the device;
None when only the position changed. With a position, the
server judges watched by its own rules, and true makes it
watched whatever they say; false alone starts it over.
at: i64When, by the device’s clock, in Unix seconds.
Trait Implementations§
Source§impl Clone for OfflineWatch
impl Clone for OfflineWatch
Source§impl Debug for OfflineWatch
impl Debug for OfflineWatch
Source§impl<'de> Deserialize<'de> for OfflineWatch
impl<'de> Deserialize<'de> for OfflineWatch
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 OfflineWatch
Source§impl PartialEq for OfflineWatch
impl PartialEq for OfflineWatch
Source§impl Serialize for OfflineWatch
impl Serialize for OfflineWatch
impl StructuralPartialEq for OfflineWatch
Auto Trait Implementations§
impl Forget for OfflineWatch
impl Freeze for OfflineWatch
impl Move for OfflineWatch
impl RefUnwindSafe for OfflineWatch
impl Send for OfflineWatch
impl Sync for OfflineWatch
impl Unpin for OfflineWatch
impl UnsafeUnpin for OfflineWatch
impl UnwindSafe for OfflineWatch
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