[][src]Struct rustfm_scraper::models::user::User

pub struct User {
    pub gender: String,
    pub name: String,
    pub subscriber: String,
    pub url: String,
    pub country: String,
    pub registered: Registered,
    pub user_type: String,
    pub age: String,
    pub real_name: String,
    // some fields omitted
}

Response to a user.getInfo request

Returns information about a user's profile. Certain fields, such as bootstrap and images, have been omitted from deserialization since they are not used in this application

Fields

gender: String

The user's gender

name: String

The user's username

subscriber: String

Indicates if the user is a subscriber to Last.fm

url: String

The user's profile URL

country: String

The user's country

registered: Registered

The date and time the user registered their profile, represented as a unix timestamp

See Registered

user_type: String

The user's profile type. Could be a normal user or a staff user.

age: String

The user's age

real_name: String

The user's real name, if provided

Implementations

impl User[src]

pub fn playlists(&self) -> i32[src]

Get the number of playlists created by the user

pub fn playlists_formatted(&self) -> String[src]

Get the number of playlists created by the user, formatted according to the user's system locale

pub fn play_count(&self) -> i32[src]

Get the total number of scrobbles by the user

pub fn play_count_formatted(&self) -> String[src]

Trait Implementations

impl<'de> Deserialize<'de> 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> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,