pub struct Credential {Show 78 fields
pub user_id: Option<i64>,
pub user_display_name: Option<String>,
pub user_login: Option<String>,
pub user_mail: Option<String>,
pub user_firstname: Option<String>,
pub user_lastname: Option<String>,
pub user_gender: Option<String>,
pub user_birthdate: Option<String>,
pub user_country: Option<String>,
pub user_timezone: Option<String>,
pub user_language: Option<String>,
pub user_avatar: Option<String>,
pub user_partial: Option<bool>,
pub user_age: Option<i64>,
pub user_created_at: Option<String>,
pub user_is_anonymous: Option<bool>,
pub user_is_subscriber: Option<bool>,
pub user_is_trialist: Option<bool>,
pub user_is_free: Option<bool>,
pub user_subscription_type: Option<String>,
pub user_store: Option<String>,
pub user_zone: Option<String>,
pub user_trial_expire_at: Option<String>,
pub user_trial_days_left: Option<i64>,
pub user_trial_used: Option<bool>,
pub user_has_promo: Option<bool>,
pub user_promo_days_left: Option<i64>,
pub user_has_inbox: Option<bool>,
pub user_inbox_unread_count: Option<i32>,
pub user_has_newsletter: Option<bool>,
pub user_has_newsletter_qobuz: Option<bool>,
pub user_has_newsletter_label: Option<bool>,
pub user_has_newsletter_partner: Option<bool>,
pub user_has_newsletter_third_party: Option<bool>,
pub user_can_stream_hires: Option<bool>,
pub user_can_download_hires: Option<bool>,
pub user_can_skip_tracks: Option<bool>,
pub user_can_repeat_tracks: Option<bool>,
pub user_can_create_playlist: Option<bool>,
pub user_can_create_public_playlist: Option<bool>,
pub user_can_create_radio: Option<bool>,
pub user_can_share: Option<bool>,
pub user_can_download: Option<bool>,
pub user_has_instant_mix: Option<bool>,
pub user_has_radio: Option<bool>,
pub user_has_discovery: Option<bool>,
pub user_has_personalization: Option<bool>,
pub user_has_replaygain: Option<bool>,
pub user_has_equalizer: Option<bool>,
pub user_has_crossfade: Option<bool>,
pub user_has_gapless_playback: Option<bool>,
pub user_has_offline_mode: Option<bool>,
pub user_has_lyrics: Option<bool>,
pub user_has_captions: Option<bool>,
pub user_has_audio_quality_settings: Option<bool>,
pub user_has_ui_settings: Option<bool>,
pub user_has_account_settings: Option<bool>,
pub user_has_privacy_settings: Option<bool>,
pub user_has_subscription_settings: Option<bool>,
pub user_has_payment_methods: Option<bool>,
pub user_has_addresses: Option<bool>,
pub user_has_playback_history: Option<bool>,
pub user_has_library: Option<bool>,
pub user_has_favorites: Option<bool>,
pub user_has_playlists: Option<bool>,
pub user_has_followings: Option<bool>,
pub user_has_subscriptions: Option<bool>,
pub user_has_purchases: Option<bool>,
pub user_has_playback_statistics: Option<bool>,
pub user_has_recommendations: Option<bool>,
pub user_has_discover: Option<bool>,
pub user_has_personal_radio: Option<bool>,
pub user_has_instant_mixes: Option<bool>,
pub user_has_smart_playlists: Option<bool>,
pub user_has_daily_mixes: Option<bool>,
pub user_has_weekly_mixes: Option<bool>,
pub user_has_monthly_mixes: Option<bool>,
pub user_has_yearly_mixes: Option<bool>,
}Expand description
Credential model containing user credential information
This struct represents comprehensive user credential information including personal details, account settings, and feature availability.
§Examples
use qobuz_api_rust::models::Credential;
let credential = Credential {
user_id: Some(123456789),
user_display_name: Some("Example User".to_string()),
..Default::default()
};Fields§
§user_id: Option<i64>User ID associated with the credentials
user_display_name: Option<String>Display name of the user
user_login: Option<String>Login username of the user
user_mail: Option<String>Email address of the user
user_firstname: Option<String>First name of the user
user_lastname: Option<String>Last name of the user
user_gender: Option<String>Gender of the user
user_birthdate: Option<String>Birthdate of the user
user_country: Option<String>Country where the user is located
user_timezone: Option<String>Timezone of the user
user_language: Option<String>Language of the user
user_avatar: Option<String>URL to the user’s avatar
user_partial: Option<bool>Whether the user profile is partial
user_age: Option<i64>Age of the user
user_created_at: Option<String>Date when the user account was created
user_is_anonymous: Option<bool>Whether the user is anonymous
user_is_subscriber: Option<bool>Whether the user is a subscriber
user_is_trialist: Option<bool>Whether the user is on a trial
user_is_free: Option<bool>Whether the user has a free account
user_subscription_type: Option<String>Type of subscription the user has
user_store: Option<String>Store associated with the user
user_zone: Option<String>Zone associated with the user
user_trial_expire_at: Option<String>Date when the user’s trial expires
user_trial_days_left: Option<i64>Number of days left in the user’s trial
user_trial_used: Option<bool>Whether the user has used a trial
user_has_promo: Option<bool>Whether the user has a promotion
user_promo_days_left: Option<i64>Number of days left in the user’s promotion
user_has_inbox: Option<bool>Whether the user has an inbox
user_inbox_unread_count: Option<i32>Number of unread messages in the user’s inbox
Whether the user has newsletter subscriptions
Whether the user is subscribed to Qobuz newsletter
Whether the user is subscribed to label newsletter
Whether the user is subscribed to partner newsletter
Whether the user is subscribed to third-party newsletter
user_can_stream_hires: Option<bool>Whether the user can stream high-resolution audio
user_can_download_hires: Option<bool>Whether the user can download high-resolution audio
user_can_skip_tracks: Option<bool>Whether the user can skip tracks
user_can_repeat_tracks: Option<bool>Whether the user can repeat tracks
user_can_create_playlist: Option<bool>Whether the user can create playlists
user_can_create_public_playlist: Option<bool>Whether the user can create public playlists
user_can_create_radio: Option<bool>Whether the user can create radio stations
Whether the user can share content
user_can_download: Option<bool>Whether the user can download content
user_has_instant_mix: Option<bool>Whether the user has access to instant mixes
user_has_radio: Option<bool>Whether the user has access to radio
user_has_discovery: Option<bool>Whether the user has access to discovery features
user_has_personalization: Option<bool>Whether the user has access to personalization features
user_has_replaygain: Option<bool>Whether the user has access to replay gain
user_has_equalizer: Option<bool>Whether the user has access to equalizer
user_has_crossfade: Option<bool>Whether the user has access to crossfade
user_has_gapless_playback: Option<bool>Whether the user has access to gapless playback
user_has_offline_mode: Option<bool>Whether the user has access to offline mode
user_has_lyrics: Option<bool>Whether the user has access to lyrics
user_has_captions: Option<bool>Whether the user has access to captions
user_has_audio_quality_settings: Option<bool>Whether the user has access to audio quality settings
user_has_ui_settings: Option<bool>Whether the user has access to UI settings
user_has_account_settings: Option<bool>Whether the user has access to account settings
user_has_privacy_settings: Option<bool>Whether the user has access to privacy settings
user_has_subscription_settings: Option<bool>Whether the user has access to subscription settings
user_has_payment_methods: Option<bool>Whether the user has payment methods set up
user_has_addresses: Option<bool>Whether the user has addresses saved
user_has_playback_history: Option<bool>Whether the user has playback history
user_has_library: Option<bool>Whether the user has a library
user_has_favorites: Option<bool>Whether the user has favorites
user_has_playlists: Option<bool>Whether the user has playlists
user_has_followings: Option<bool>Whether the user has followings
user_has_subscriptions: Option<bool>Whether the user has subscriptions
user_has_purchases: Option<bool>Whether the user has purchases
user_has_playback_statistics: Option<bool>Whether the user has playback statistics
user_has_recommendations: Option<bool>Whether the user has recommendations
user_has_discover: Option<bool>Whether the user has access to discover features
user_has_personal_radio: Option<bool>Whether the user has access to personal radio
user_has_instant_mixes: Option<bool>Whether the user has access to instant mixes
user_has_smart_playlists: Option<bool>Whether the user has access to smart playlists
user_has_daily_mixes: Option<bool>Whether the user has access to daily mixes
user_has_weekly_mixes: Option<bool>Whether the user has access to weekly mixes
user_has_monthly_mixes: Option<bool>Whether the user has access to monthly mixes
user_has_yearly_mixes: Option<bool>Whether the user has access to yearly mixes
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more