pub struct DevicesClient { /* private fields */ }Expand description
Spotify devices API client.
Implementations§
Source§impl DevicesClient
impl DevicesClient
pub fn new(http: HttpClient, auth: AuthService) -> Self
pub fn list(&self) -> Result<Vec<Device>>
pub fn set_active(&self, device_id: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for DevicesClient
impl Clone for DevicesClient
Source§fn clone(&self) -> DevicesClient
fn clone(&self) -> DevicesClient
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 moreAuto Trait Implementations§
impl Freeze for DevicesClient
impl !RefUnwindSafe for DevicesClient
impl Send for DevicesClient
impl Sync for DevicesClient
impl Unpin for DevicesClient
impl !UnwindSafe for DevicesClient
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