Struct discord::builders::EditUserProfile
[−]
[src]
pub struct EditUserProfile(_);
Patch content for the edit_user_profile
call.
Methods
impl EditUserProfile
[src]
fn merge(self, other: EditUserProfile) -> EditUserProfile
Merge this builder's contents with another of the same type.
Keys in other
will override those in self
.
This method is intended to be used with deserialized instances. Note that deserialization does not check that the keys are valid for the relevant API call.
discord.edit_server(|b| b .merge(serde_json::from_str(r#"{"name":"My Server"}"#)?))
impl EditUserProfile
[src]
fn password(self, password: &str) -> Self
Provide the user's current password for authentication. Required if the email or password is being changed.
fn email(self, email: &str) -> Self
Edit the user's email address.
fn new_password(self, password: &str) -> Self
Edit the user's password.
fn username(self, username: &str) -> Self
Edit the user's username. Must be between 2 and 32 characters long.
fn avatar(self, icon: Option<&str>) -> Self
Edit the user's avatar. Use None
to remove the avatar.