pub struct UserUpdate {
pub handle: ItemDiff<String>,
pub display_name: ItemDiff<String>,
pub add_to_bio: Vec<(String, String)>,
pub rm_from_bio: BTreeSet<String>,
pub services: BTreeSet<SetDiff<String>>,
pub avi_data: ItemDiff<Vec<u8>>,
}Expand description
All the ways a UserData can change, as individual events.
Fields§
§handle: ItemDiff<String>Set or blank the User’s handle
display_name: ItemDiff<String>Set or blank the User’s display name
add_to_bio: Vec<(String, String)>Add or update a biography line with the given key to the given value.
rm_from_bio: BTreeSet<String>Remove a biography line with the given key, or do nothing if it does not exist.
services: BTreeSet<SetDiff<String>>Add a service with the given name.
avi_data: ItemDiff<Vec<u8>>Set or blank the User’s avatar.
Trait Implementations§
Source§impl Clone for UserUpdate
impl Clone for UserUpdate
Source§fn clone(&self) -> UserUpdate
fn clone(&self) -> UserUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserUpdate
impl Debug for UserUpdate
Source§impl Default for UserUpdate
impl Default for UserUpdate
Source§fn default() -> UserUpdate
fn default() -> UserUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserUpdatewhere
UserUpdate: Default,
impl<'de> Deserialize<'de> for UserUpdatewhere
UserUpdate: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UserUpdate
Source§impl PartialEq for UserUpdate
impl PartialEq for UserUpdate
Source§impl Serialize for UserUpdate
impl Serialize for UserUpdate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UserUpdate
Auto Trait Implementations§
impl Freeze for UserUpdate
impl RefUnwindSafe for UserUpdate
impl Send for UserUpdate
impl Sync for UserUpdate
impl Unpin for UserUpdate
impl UnsafeUnpin for UserUpdate
impl UnwindSafe for UserUpdate
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