pub enum MemberField {
Nickname,
Avatar,
}Expand description
A member field, that can be used to unset a field in a Member.
Variants§
Implementations§
Source§impl MemberField
impl MemberField
Sourcepub fn remove_patch(self, member: &mut Member)
pub fn remove_patch(self, member: &mut Member)
Treats self as a patch and removes the field from the member.
Trait Implementations§
Source§impl Clone for MemberField
impl Clone for MemberField
Source§fn clone(&self) -> MemberField
fn clone(&self) -> MemberField
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 Debug for MemberField
impl Debug for MemberField
Source§impl<'de> Deserialize<'de> for MemberField
impl<'de> Deserialize<'de> for MemberField
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 Hash for MemberField
impl Hash for MemberField
Source§impl Ord for MemberField
impl Ord for MemberField
Source§fn cmp(&self, other: &MemberField) -> Ordering
fn cmp(&self, other: &MemberField) -> 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 MemberField
impl PartialEq for MemberField
Source§impl PartialOrd for MemberField
impl PartialOrd for MemberField
Source§impl Serialize for MemberField
impl Serialize for MemberField
impl Copy for MemberField
impl Eq for MemberField
impl StructuralPartialEq for MemberField
Auto Trait Implementations§
impl Freeze for MemberField
impl RefUnwindSafe for MemberField
impl Send for MemberField
impl Sync for MemberField
impl Unpin for MemberField
impl UnwindSafe for MemberField
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