Struct spotifyrs::PlaybackActions
source · pub struct PlaybackActions {
pub interrupting_playback: bool,
pub pausing: bool,
pub resuming: bool,
pub seeking: bool,
pub skipping_next: bool,
pub skipping_prev: bool,
pub toggling_repeat_context: bool,
pub toggling_repeat_track: bool,
pub toggling_shuffle: bool,
pub transferring_playback: bool,
}
Expand description
Struct representing allowed actions for a given playback state
Fields§
§interrupting_playback: bool
§pausing: bool
§resuming: bool
§seeking: bool
§skipping_next: bool
§skipping_prev: bool
§toggling_repeat_context: bool
§toggling_repeat_track: bool
§toggling_shuffle: bool
§transferring_playback: bool
Implementations§
source§impl PlaybackActions
impl PlaybackActions
sourcepub fn new(raw_object: &JsonValue) -> PlaybackActions
pub fn new(raw_object: &JsonValue) -> PlaybackActions
Takes JsonValue representing possible playback actions and returns PlaybackActions struct
Arguments
raw_object
- JsonValue representing possible playback actions
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PlaybackActions
impl Send for PlaybackActions
impl Sync for PlaybackActions
impl Unpin for PlaybackActions
impl UnwindSafe for PlaybackActions
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