pub struct OfflinePlay {
pub track: MediaId,
pub at: i64,
pub played_ms: u64,
pub source: Option<PlaySource>,
}Expand description
A track played on a device with no server (SyncOfflinePlays).
Fields§
§track: MediaId§at: i64When the play ended, by the device’s clock, in Unix seconds. With
track, what makes the play one: sent twice, it counts once.
played_ms: u64How much of it was played: the server judges by its rules whether it counts as a play.
source: Option<PlaySource>Where it was started (crate::recently_played::PlaySource); left
out, none.
Trait Implementations§
Source§impl Clone for OfflinePlay
impl Clone for OfflinePlay
Source§impl Debug for OfflinePlay
impl Debug for OfflinePlay
Source§impl<'de> Deserialize<'de> for OfflinePlay
impl<'de> Deserialize<'de> for OfflinePlay
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 OfflinePlay
Source§impl PartialEq for OfflinePlay
impl PartialEq for OfflinePlay
Source§impl Serialize for OfflinePlay
impl Serialize for OfflinePlay
impl StructuralPartialEq for OfflinePlay
Auto Trait Implementations§
impl Forget for OfflinePlay
impl Freeze for OfflinePlay
impl Move for OfflinePlay
impl RefUnwindSafe for OfflinePlay
impl Send for OfflinePlay
impl Sync for OfflinePlay
impl Unpin for OfflinePlay
impl UnsafeUnpin for OfflinePlay
impl UnwindSafe for OfflinePlay
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