pub struct ChangeSettings {
pub current_username: String,
pub current_password: String,
pub optional: HashMap<String, Value>,
}
Expand description
| Name | Type Description | | currentUsername | string | | | currentPassword | string | | | userInitiatedChange | boolean | optional | | includeFacebook | boolean | optional | Additionally keys listed in Settings are permitted in the request body.
Fields§
§current_username: String
Current credentials must be provided with the request.
current_password: String
Current credentials must be provided with the request.
optional: HashMap<String, Value>
Optional parameters on the call
Implementations§
Source§impl ChangeSettings
impl ChangeSettings
Sourcepub fn new(current_username: &str, current_password: &str) -> Self
pub fn new(current_username: &str, current_password: &str) -> Self
Create a new ChangeSettings with some values. All Optional fields are set to None.
Sourcepub fn and_boolean_option(self, option: &str, value: bool) -> Self
pub fn and_boolean_option(self, option: &str, value: bool) -> Self
Convenience function for setting boolean flags in the request. (Chaining call)
Sourcepub fn and_string_option(self, option: &str, value: &str) -> Self
pub fn and_string_option(self, option: &str, value: &str) -> Self
Convenience function for setting boolean flags in the request. (Chaining call)
Sourcepub fn and_number_option(self, option: &str, value: u32) -> Self
pub fn and_number_option(self, option: &str, value: u32) -> Self
Convenience function for setting boolean flags in the request. (Chaining call)
Sourcepub fn user_initiated_change(self, value: bool) -> Self
pub fn user_initiated_change(self, value: bool) -> Self
Whether request was initiated at the user request. (Chaining call)
Sourcepub fn include_facebook(self, value: bool) -> Self
pub fn include_facebook(self, value: bool) -> Self
Unknown. (Chaining call)
Sourcepub fn gender(self, value: UserGender) -> Self
pub fn gender(self, value: UserGender) -> Self
Set account-holder gender, Male or Female. (Chaining call)
Sourcepub fn birth_year(self, value: u32) -> Self
pub fn birth_year(self, value: u32) -> Self
Set account-holder birth year. (Chaining call)
Sourcepub fn is_profile_private(self, value: bool) -> Self
pub fn is_profile_private(self, value: bool) -> Self
Whether the user profile is private or publicly visible. (Chaining call)
Sourcepub fn enable_comments(self, value: bool) -> Self
pub fn enable_comments(self, value: bool) -> Self
Whether account comments are enabled. (Chaining call)
Sourcepub fn email_opt_in(self, value: bool) -> Self
pub fn email_opt_in(self, value: bool) -> Self
Whether email communications from Pandora are permitted. (Chaining call)
Sourcepub fn email_comments(self, value: bool) -> Self
pub fn email_comments(self, value: bool) -> Self
Whether to receive email notifications for comments. (Chaining call)
Sourcepub fn email_new_followers(self, value: bool) -> Self
pub fn email_new_followers(self, value: bool) -> Self
Whether to receive email notifications of new followers. (Chaining call)
Sourcepub fn is_explicit_content_filter_enabled(self, value: bool) -> Self
pub fn is_explicit_content_filter_enabled(self, value: bool) -> Self
Whether the explicit content filter should be enabled. (Chaining call)
Sourcepub fn is_explicit_content_filter_pin_protected(self, value: bool) -> Self
pub fn is_explicit_content_filter_pin_protected(self, value: bool) -> Self
Whether the explicit content filter is protected by a PIN code. (Chaining call)
Sourcepub fn new_username(self, value: &str) -> Self
pub fn new_username(self, value: &str) -> Self
New account username. (Chaining call)
Sourcepub fn new_password(self, value: &str) -> Self
pub fn new_password(self, value: &str) -> Self
New account password. (Chaining call)
Whether to auto-share on facebook. (Chaining call)
Whether to auto-share tracks played. (Chaining call)
Whether to auto-share liked tracks. (Chaining call)
Whether to auto-share user follows. (Chaining call)
Sourcepub fn facebook_setting_checksum(self, value: bool) -> Self
pub fn facebook_setting_checksum(self, value: bool) -> Self
Unknown. (Chaining call)
Trait Implementations§
Source§impl Clone for ChangeSettings
impl Clone for ChangeSettings
Source§fn clone(&self) -> ChangeSettings
fn clone(&self) -> ChangeSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more