pub struct ModifyCurrentGuildMemberSchema {
pub nickname: Option<String>,
pub avatar: Option<String>,
pub avatar_decoration_id: Option<Snowflake>,
pub avatar_decoration_sku_id: Option<Snowflake>,
pub pronouns: Option<String>,
pub bio: Option<String>,
pub banner: Option<String>,
}Expand description
Schema for the Guild::modify_current_member route.
§Reference
See https://docs.discord.food/resources/guild#modify-current-guild-member
Fields§
§nickname: Option<String>The nickname of the member (1-32 characters)
Requires the CHANGE_NICKNAME permission.
avatar: Option<String>The member’s guild avatar.
Can only be changed for premium users
avatar_decoration_id: Option<Snowflake>The ID of the member’s avatar decoration
avatar_decoration_sku_id: Option<Snowflake>The SKU ID of the member’s avatar decoration
pronouns: Option<String>The member’s guild pronouns (up to 40 characters)
bio: Option<String>The member’s guild bio.
Can only be changed for premium users
The member’s guild banner.
Can only be changed for premium users
Trait Implementations§
Source§impl Clone for ModifyCurrentGuildMemberSchema
impl Clone for ModifyCurrentGuildMemberSchema
Source§fn clone(&self) -> ModifyCurrentGuildMemberSchema
fn clone(&self) -> ModifyCurrentGuildMemberSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ModifyCurrentGuildMemberSchema
impl<'de> Deserialize<'de> for ModifyCurrentGuildMemberSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Ord for ModifyCurrentGuildMemberSchema
impl Ord for ModifyCurrentGuildMemberSchema
Source§fn cmp(&self, other: &ModifyCurrentGuildMemberSchema) -> Ordering
fn cmp(&self, other: &ModifyCurrentGuildMemberSchema) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModifyCurrentGuildMemberSchema
impl PartialEq for ModifyCurrentGuildMemberSchema
Source§fn eq(&self, other: &ModifyCurrentGuildMemberSchema) -> bool
fn eq(&self, other: &ModifyCurrentGuildMemberSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ModifyCurrentGuildMemberSchema
impl PartialOrd for ModifyCurrentGuildMemberSchema
impl Eq for ModifyCurrentGuildMemberSchema
impl StructuralPartialEq for ModifyCurrentGuildMemberSchema
Auto Trait Implementations§
impl Freeze for ModifyCurrentGuildMemberSchema
impl RefUnwindSafe for ModifyCurrentGuildMemberSchema
impl Send for ModifyCurrentGuildMemberSchema
impl Sync for ModifyCurrentGuildMemberSchema
impl Unpin for ModifyCurrentGuildMemberSchema
impl UnwindSafe for ModifyCurrentGuildMemberSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.