pub struct PasswordChange {
pub old_password: Option<String>,
pub new_password: String,
}Available on crate feature
alloc only.Expand description
The body of POST /api/auth/account/password.
Fields§
§old_password: Option<String>The current password, required when one is set.
new_password: StringThe new password.
Trait Implementations§
Source§impl Clone for PasswordChange
impl Clone for PasswordChange
Source§impl Debug for PasswordChange
impl Debug for PasswordChange
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for PasswordChangewhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Binary, __A> for PasswordChangewhere
__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 PasswordChangewhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Text, __A> for PasswordChangewhere
__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 PasswordChange
impl<'de> Deserialize<'de> for PasswordChange
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 PasswordChange
Available on crate feature musli02 only.
impl Encode<Binary> for PasswordChange
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 = PasswordChange
type Encode = PasswordChange
The underlying type being encoded. Read more
Source§impl Encode<Text> for PasswordChange
Available on crate feature musli02 only.
impl Encode<Text> for PasswordChange
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 = PasswordChange
type Encode = PasswordChange
The underlying type being encoded. Read more
impl Eq for PasswordChange
Source§impl PartialEq for PasswordChange
impl PartialEq for PasswordChange
Source§impl Request for PasswordChange
Available on crate feature musliweb05 only.
impl Request for PasswordChange
Available on crate feature
musliweb05 only.Source§type Endpoint = ChangePassword
type Endpoint = ChangePassword
The endpoint related to the request.
Source§impl Serialize for PasswordChange
impl Serialize for PasswordChange
impl StructuralPartialEq for PasswordChange
Auto Trait Implementations§
impl Freeze for PasswordChange
impl RefUnwindSafe for PasswordChange
impl Send for PasswordChange
impl Sync for PasswordChange
impl Unpin for PasswordChange
impl UnsafeUnpin for PasswordChange
impl UnwindSafe for PasswordChange
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