pub struct Play {
pub owner: UserRef,
pub track: EntityRef,
pub at: u64,
pub ms_played: u64,
pub completed: bool,
}Expand description
One listening event.
An annotation is a statement; a play is an event, and events accumulate.
Fields§
§owner: UserRefWho listened.
track: EntityRefWhat was played.
at: u64When it started (Unix epoch, seconds).
ms_played: u64How much of it was actually heard.
completed: boolWhether it played to the end.
A track skipped after eight seconds is evidence against it, and a history that cannot tell a skip from a listen measures the wrong thing.
Trait Implementations§
impl StructuralPartialEq for Play
Auto Trait Implementations§
impl Freeze for Play
impl RefUnwindSafe for Play
impl Send for Play
impl Sync for Play
impl Unpin for Play
impl UnwindSafe for Play
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