pub struct PasswordReq {
pub old_password: Option<String>,
pub new_password: Option<String>,
}Fields§
§old_password: Option<String>The user’s existing password.
new_password: Option<String>New password for marking as to be updated.
Implementations§
Source§impl PasswordReq
impl PasswordReq
pub fn new() -> PasswordReq
Trait Implementations§
Source§impl Clone for PasswordReq
impl Clone for PasswordReq
Source§fn clone(&self) -> PasswordReq
fn clone(&self) -> PasswordReq
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 PasswordReq
impl Debug for PasswordReq
Source§impl Default for PasswordReq
impl Default for PasswordReq
Source§fn default() -> PasswordReq
fn default() -> PasswordReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PasswordReq
impl<'de> Deserialize<'de> for PasswordReq
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 PartialEq for PasswordReq
impl PartialEq for PasswordReq
Source§impl Serialize for PasswordReq
impl Serialize for PasswordReq
impl StructuralPartialEq for PasswordReq
Auto Trait Implementations§
impl Freeze for PasswordReq
impl RefUnwindSafe for PasswordReq
impl Send for PasswordReq
impl Sync for PasswordReq
impl Unpin for PasswordReq
impl UnwindSafe for PasswordReq
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