pub struct QueryResult {Show 13 fields
pub playback_state: Option<PlaybackStatus>,
pub currently_playing: Option<Option<TrackId>>,
pub currently_playing_index: Option<Option<usize>>,
pub volume: Option<f32>,
pub time: Option<Option<f64>>,
pub queue: Option<Vec<TrackId>>,
pub queue_state: Option<Hash>,
pub playlist: Option<Vec<Collectable>>,
pub playlist_state: Option<Hash>,
pub tracklist: Option<Vec<TrackId>>,
pub tracklist_position: Option<Option<usize>>,
pub shuffle_mode: Option<ShuffleMode>,
pub loop_mode: Option<LoopMode>,
}Fields§
§playback_state: Option<PlaybackStatus>§currently_playing: Option<Option<TrackId>>§currently_playing_index: Option<Option<usize>>§volume: Option<f32>§time: Option<Option<f64>>§queue: Option<Vec<TrackId>>§queue_state: Option<Hash>§playlist: Option<Vec<Collectable>>§playlist_state: Option<Hash>§tracklist: Option<Vec<TrackId>>§tracklist_position: Option<Option<usize>>§shuffle_mode: Option<ShuffleMode>§loop_mode: Option<LoopMode>Trait Implementations§
Source§impl Clone for QueryResult
impl Clone for QueryResult
Source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
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 QueryResult
impl Debug for QueryResult
Source§impl Default for QueryResult
impl Default for QueryResult
Source§fn default() -> QueryResult
fn default() -> QueryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryResult
impl<'de> Deserialize<'de> for QueryResult
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
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
impl UnwindSafe for QueryResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more