pub struct UserChange {
pub login: Option<Option<String>>,
pub email: Option<Option<String>>,
pub role: Option<Role>,
}Available on crate feature
alloc only.Expand description
A change to a user. None leaves a field as it is; Some(None) clears an
optional one.
Fields§
§login: Option<Option<String>>The new login name.
email: Option<Option<String>>The new email.
role: Option<Role>The new role.
Trait Implementations§
Source§impl Clone for UserChange
impl Clone for UserChange
Source§impl Debug for UserChange
impl Debug for UserChange
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for UserChangewhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Binary, __A> for UserChangewhere
__A: Allocator,
Available on crate feature
musli02 only.Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'__de, __A> Decode<'__de, Text, __A> for UserChangewhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Text, __A> for UserChangewhere
__A: Allocator,
Available on crate feature
musli02 only.Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl Default for UserChange
impl Default for UserChange
Source§impl<'de> Deserialize<'de> for UserChange
impl<'de> Deserialize<'de> for UserChange
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 Encode<Binary> for UserChange
Available on crate feature musli02 only.
impl Encode<Binary> for UserChange
Available on crate feature
musli02 only.Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = UserChange
type Encode = UserChange
The underlying type being encoded. Read more
Source§impl Encode<Text> for UserChange
Available on crate feature musli02 only.
impl Encode<Text> for UserChange
Available on crate feature
musli02 only.Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = UserChange
type Encode = UserChange
The underlying type being encoded. Read more
impl Eq for UserChange
Source§impl PartialEq for UserChange
impl PartialEq for UserChange
Source§impl Request for UserChange
Available on crate feature musliweb05 only.
impl Request for UserChange
Available on crate feature
musliweb05 only.Source§type Endpoint = UpdateAccount
type Endpoint = UpdateAccount
The endpoint related to the request.
Source§impl Serialize for UserChange
impl Serialize for UserChange
impl StructuralPartialEq for UserChange
Auto Trait Implementations§
impl Freeze for UserChange
impl RefUnwindSafe for UserChange
impl Send for UserChange
impl Sync for UserChange
impl Unpin for UserChange
impl UnsafeUnpin for UserChange
impl UnwindSafe for UserChange
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