pub struct PlaySettings {
pub shuffle: bool,
pub repeat: Repeat,
pub skip_watched: bool,
}Expand description
How a user plays a playlist, kept per user and playlist.
Fields§
§shuffle: boolPlay in a shuffled order: every playable entry once per round.
repeat: Repeat§skip_watched: boolPass entries whose item the user has watched.
Trait Implementations§
Source§impl Clone for PlaySettings
impl Clone for PlaySettings
impl Copy for PlaySettings
Source§impl Debug for PlaySettings
impl Debug for PlaySettings
Source§impl Default for PlaySettings
impl Default for PlaySettings
Source§impl<'de> Deserialize<'de> for PlaySettings
impl<'de> Deserialize<'de> for PlaySettings
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 PlaySettings
Source§impl Hash for PlaySettings
impl Hash for PlaySettings
Source§impl PartialEq for PlaySettings
impl PartialEq for PlaySettings
Source§impl Serialize for PlaySettings
impl Serialize for PlaySettings
impl StructuralPartialEq for PlaySettings
Auto Trait Implementations§
impl Forget for PlaySettings
impl Freeze for PlaySettings
impl Move for PlaySettings
impl RefUnwindSafe for PlaySettings
impl Send for PlaySettings
impl Sync for PlaySettings
impl Unpin for PlaySettings
impl UnsafeUnpin for PlaySettings
impl UnwindSafe for PlaySettings
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