pub struct UserSessionPasswordAuthentication {
pub password: String,
pub recovery_code: Option<String>,
}Expand description
Authentication using a password for an user session
Fields§
§password: StringThe password
recovery_code: Option<String>An optional recovery code
Trait Implementations§
Source§impl BorshDeserialize for UserSessionPasswordAuthentication
impl BorshDeserialize for UserSessionPasswordAuthentication
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for UserSessionPasswordAuthentication
impl Clone for UserSessionPasswordAuthentication
Source§fn clone(&self) -> UserSessionPasswordAuthentication
fn clone(&self) -> UserSessionPasswordAuthentication
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for UserSessionPasswordAuthentication
impl<'de> Deserialize<'de> for UserSessionPasswordAuthentication
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 From<UserSessionPasswordAuthentication> for UserSessionAuthentication
impl From<UserSessionPasswordAuthentication> for UserSessionAuthentication
Source§fn from(value: UserSessionPasswordAuthentication) -> Self
fn from(value: UserSessionPasswordAuthentication) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserSessionPasswordAuthentication
impl PartialEq for UserSessionPasswordAuthentication
Source§fn eq(&self, other: &UserSessionPasswordAuthentication) -> bool
fn eq(&self, other: &UserSessionPasswordAuthentication) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UserSessionPasswordAuthentication
impl StructuralPartialEq for UserSessionPasswordAuthentication
Auto Trait Implementations§
impl Freeze for UserSessionPasswordAuthentication
impl RefUnwindSafe for UserSessionPasswordAuthentication
impl Send for UserSessionPasswordAuthentication
impl Sync for UserSessionPasswordAuthentication
impl Unpin for UserSessionPasswordAuthentication
impl UnwindSafe for UserSessionPasswordAuthentication
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