pub struct DataPasswordReset {
pub token: String,
pub password: String,
pub remove_sessions: Option<bool>,
}Fields§
§token: StringReset token
password: StringNew password
remove_sessions: Option<bool>Whether to logout all sessions
Implementations§
Source§impl DataPasswordReset
impl DataPasswordReset
pub fn new(token: String, password: String) -> DataPasswordReset
Trait Implementations§
Source§impl Clone for DataPasswordReset
impl Clone for DataPasswordReset
Source§fn clone(&self) -> DataPasswordReset
fn clone(&self) -> DataPasswordReset
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 DataPasswordReset
impl Debug for DataPasswordReset
Source§impl Default for DataPasswordReset
impl Default for DataPasswordReset
Source§fn default() -> DataPasswordReset
fn default() -> DataPasswordReset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataPasswordReset
impl<'de> Deserialize<'de> for DataPasswordReset
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 DataPasswordReset
impl PartialEq for DataPasswordReset
Source§fn eq(&self, other: &DataPasswordReset) -> bool
fn eq(&self, other: &DataPasswordReset) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DataPasswordReset
impl Serialize for DataPasswordReset
impl StructuralPartialEq for DataPasswordReset
Auto Trait Implementations§
impl Freeze for DataPasswordReset
impl RefUnwindSafe for DataPasswordReset
impl Send for DataPasswordReset
impl Sync for DataPasswordReset
impl Unpin for DataPasswordReset
impl UnsafeUnpin for DataPasswordReset
impl UnwindSafe for DataPasswordReset
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