pub struct GetCurrentlyPlayingTrack {
pub market: Option<Market>,
}Expand description
Get the object currently being played on the user’s Spotify account.
Fields§
§market: Option<Market>An ISO 3166-1 alpha-2 country code. If a country code is specified, only content that is available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter.
§Notes
If neither market or user country are provided, the content is considered unavailable for the client. Users can view the country that is associated with their account in the account settings.
Trait Implementations§
Source§impl Clone for GetCurrentlyPlayingTrack
impl Clone for GetCurrentlyPlayingTrack
Source§fn clone(&self) -> GetCurrentlyPlayingTrack
fn clone(&self) -> GetCurrentlyPlayingTrack
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 GetCurrentlyPlayingTrack
impl Debug for GetCurrentlyPlayingTrack
Source§impl Default for GetCurrentlyPlayingTrack
impl Default for GetCurrentlyPlayingTrack
Source§fn default() -> GetCurrentlyPlayingTrack
fn default() -> GetCurrentlyPlayingTrack
Returns the “default value” for a type. Read more
Source§impl Endpoint for GetCurrentlyPlayingTrack
impl Endpoint for GetCurrentlyPlayingTrack
Source§fn parameters(&self) -> QueryParams<'_>
fn parameters(&self) -> QueryParams<'_>
Query parameters for the endpoint.
Auto Trait Implementations§
impl Freeze for GetCurrentlyPlayingTrack
impl RefUnwindSafe for GetCurrentlyPlayingTrack
impl Send for GetCurrentlyPlayingTrack
impl Sync for GetCurrentlyPlayingTrack
impl Unpin for GetCurrentlyPlayingTrack
impl UnwindSafe for GetCurrentlyPlayingTrack
Blanket Implementations§
Source§impl<E, T, C> AsyncQuery<T, C> for E
impl<E, T, C> AsyncQuery<T, C> for E
Source§fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<T, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<T, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
Perform the query asynchronously against the client.
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