pub struct Collection {
pub owner: UserRef,
pub name: String,
pub expression: String,
pub created_at: u64,
pub updated_at: u64,
}Expand description
A query saved under a name: a smart collection.
It holds the expression rather than the result, so it answers with what the
library holds now — which is the whole difference between a smart
collection and a playlist. And since running one produces a selection, and a
selection is what --csv, --m3u and M3’s queue consume, a saved query is
playable the day it is written, with nothing built for it.
Fields§
§owner: UserRefWhose collection it is.
name: StringWhat it is called, as typed.
expression: StringThe expression, kept as written rather than as parsed: a grammar that gains a field must not silently change what an old collection means.
created_at: u64When it was first saved.
updated_at: u64When it was last changed.
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Collection
impl Debug for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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