#[non_exhaustive]pub struct Password {
pub identifier: Option<UserIdentifier>,
pub password: String,
pub user: Option<String>,
pub address: Option<String>,
pub medium: Option<String>,
}
Available on (crate features
client-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
only.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<Password, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Password, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Password
impl Serialize for Password
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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