Struct bonsaidb::core::networking::Authenticate
pub struct Authenticate {
pub user: NamedReference<'static, u64>,
pub authentication: Authentication,
}
Expand description
Authenticate as a user.
Fields§
§user: NamedReference<'static, u64>
The username or id of the user.
authentication: Authentication
The method of authentication.
Trait Implementations§
§impl Api for Authenticate
impl Api for Authenticate
§impl Clone for Authenticate
impl Clone for Authenticate
§fn clone(&self) -> Authenticate
fn clone(&self) -> Authenticate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Authenticate
impl Debug for Authenticate
§impl<'de> Deserialize<'de> for Authenticate
impl<'de> Deserialize<'de> for Authenticate
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Authenticate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Authenticate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Authenticate
impl Serialize for Authenticate
§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