[−][src]Struct deezer::models::User
Contains all the information provided for a User.
Examples
You can query a user by id via the DeezerObject::get()
method:
let user = User::get(12).await?.unwrap();
Or you can use DeezerClient::user()
:
let deezer = DeezerClient::new(); let user = deezer.user(12).await?.unwrap();
Fields
id: u64
The user's Deezer ID
name: String
The user's Deezer nickname
last_name: String
The user's last name
first_name: String
The user's first name
email: String
The user's email
status: u64
The user's status
birthday: String
The user's birthday
inscription_date: String
The user's inscription date
gender: String
The user's gender : F or M
link: String
The url of the profil for the user on Deezer
picture: String
The url of the user's profile picture.
picture_small: String
The url of the user's profile picture in size small.
picture_medium: String
The url of the user's profile picture in size medium.
picture_big: String
The url of the user's profile picture in size big.
picture_xl: String
The url of the user's profile picture in size xl.
country: String
The user's country
lang: String
The user's language
is_kid: bool
If the user is a kid or not
track_list: String
API Link to the flow of this user
Trait Implementations
impl Clone for User
[src]
impl Debug for User
[src]
impl DeezerObject for User
[src]
pub fn get_api_url(id: u64) -> String
[src]
#[must_use]pub fn get<'async_trait>(
id: u64
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, DeezerError>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
[src]
id: u64
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, DeezerError>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
impl<'de> Deserialize<'de> for User
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for User
[src]
Auto Trait Implementations
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,