pub struct NewUser {
pub login: Option<String>,
pub email: Option<String>,
pub role: Role,
}Available on crate feature
alloc only.Expand description
A user to create. At least one of login and email is required.
Fields§
§login: Option<String>The login name.
email: Option<String>The email.
role: RoleThe role.
Trait Implementations§
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for NewUserwhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Binary, __A> for NewUserwhere
__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 NewUserwhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Text, __A> for NewUserwhere
__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> Deserialize<'de> for NewUser
impl<'de> Deserialize<'de> for NewUser
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 NewUser
Available on crate feature musli02 only.
impl Encode<Binary> for NewUser
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§impl Encode<Text> for NewUser
Available on crate feature musli02 only.
impl Encode<Text> for NewUser
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
impl Eq for NewUser
Source§impl Request for NewUser
Available on crate feature musliweb05 only.
impl Request for NewUser
Available on crate feature
musliweb05 only.Source§type Endpoint = CreateUser
type Endpoint = CreateUser
The endpoint related to the request.
impl StructuralPartialEq for NewUser
Auto Trait Implementations§
impl Freeze for NewUser
impl RefUnwindSafe for NewUser
impl Send for NewUser
impl Sync for NewUser
impl Unpin for NewUser
impl UnsafeUnpin for NewUser
impl UnwindSafe for NewUser
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