pub struct PlayCount {
pub owner: UserRef,
pub track: EntityRef,
pub count: u32,
pub completed_count: u32,
pub last_played: u64,
}Expand description
How often one person played one track, for as long as the library lasts.
Deliberately not derived from the log: the log is bounded so that the file stays small, and “what have I never heard” cannot be answered from a truncated one. The bounded events and all-time totals answer different questions without implying a history-weighted shuffle policy.
Fields§
§owner: UserRefWhose count it is.
track: EntityRefWhich track.
count: u32All-time native listens and client-declared scrobbles combined.
completed_count: u32All-time completed Play events; duration-less scrobbles never increment this.
last_played: u64When it was last played.
Trait Implementations§
impl StructuralPartialEq for PlayCount
Auto Trait Implementations§
impl Freeze for PlayCount
impl RefUnwindSafe for PlayCount
impl Send for PlayCount
impl Sync for PlayCount
impl Unpin for PlayCount
impl UnwindSafe for PlayCount
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