#[non_exhaustive]pub struct Password {
pub identifier: Option<UserIdentifier>,
pub password: String,
pub user: Option<String>,
pub address: Option<String>,
pub medium: Option<String>,
}
Expand description
An identifier and password to supply as authentication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.identifier: Option<UserIdentifier>
Identification information for the user.
password: String
The password.
user: Option<String>
👎Deprecated: Since Matrix Client-Server API r0.4.0, clients should use
identifier
instead.Username for the user.
address: Option<String>
👎Deprecated: Since Matrix Client-Server API r0.4.0, clients should use
identifier
instead.3rd-party identifier address for the user.
medium: Option<String>
👎Deprecated: Since Matrix Client-Server API r0.4.0, clients should use
identifier
instead.3rd-party identifier medium for the user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Password
impl<'de> Deserialize<'de> for Password
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
Auto Trait Implementations§
impl Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
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