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
or server
only.Expand description
An identifier and password to supply as authentication.
Fields§
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)