[][src]Struct deezer::models::User

pub struct User {
    pub id: u64,
    pub name: String,
    pub last_name: String,
    pub first_name: String,
    pub email: String,
    pub status: u64,
    pub birthday: String,
    pub inscription_date: String,
    pub gender: String,
    pub link: String,
    pub picture: String,
    pub picture_small: String,
    pub picture_medium: String,
    pub picture_big: String,
    pub picture_xl: String,
    pub country: String,
    pub lang: String,
    pub is_kid: bool,
    pub track_list: String,
}

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]

impl<'de> Deserialize<'de> for User[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.