#[non_exhaustive]pub struct UserInfo {
pub name: String,
pub real_name: String,
pub url: String,
pub country: String,
pub age: u32,
pub gender: String,
pub subscriber: bool,
pub play_count: u32,
pub playlist_count: u32,
pub registered: u32,
}Expand description
Profile information for a Last.fm user.
Returned by user.getInfo.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringLast.fm username
real_name: StringReal name as set by the user
url: StringURL to the user’s Last.fm profile page
country: StringCountry code (e.g. "France")
age: u32Age
gender: StringGender ("m", "f", or "")
subscriber: boolWhether the user has a Last.fm Pro subscription
play_count: u32Total number of scrobbles
playlist_count: u32Number of playlists
registered: u32Account registration date as a Unix timestamp
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnsafeUnpin for UserInfo
impl UnwindSafe for UserInfo
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