Credential

Struct Credential 

Source
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

§user_has_newsletter: Option<bool>

Whether the user has newsletter subscriptions

§user_has_newsletter_qobuz: Option<bool>

Whether the user is subscribed to Qobuz newsletter

§user_has_newsletter_label: Option<bool>

Whether the user is subscribed to label newsletter

§user_has_newsletter_partner: Option<bool>

Whether the user is subscribed to partner newsletter

§user_has_newsletter_third_party: Option<bool>

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

§user_can_share: Option<bool>

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

Source§

fn clone(&self) -> Credential

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Credential

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Credential

Source§

fn default() -> Credential

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Credential

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Credential

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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