pub struct BasicAuthentication {
pub username: Option<String>,
pub password: Option<String>,
}
Fields§
§username: Option<String>
Gets or sets the username.
password: Option<String>
Gets or sets the password, return value will always be empty.
Implementations§
Trait Implementations§
source§impl Clone for BasicAuthentication
impl Clone for BasicAuthentication
source§fn clone(&self) -> BasicAuthentication
fn clone(&self) -> BasicAuthentication
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 moresource§impl Debug for BasicAuthentication
impl Debug for BasicAuthentication
source§impl<'de> Deserialize<'de> for BasicAuthentication
impl<'de> Deserialize<'de> for BasicAuthentication
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 PartialEq for BasicAuthentication
impl PartialEq for BasicAuthentication
source§fn eq(&self, other: &BasicAuthentication) -> bool
fn eq(&self, other: &BasicAuthentication) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BasicAuthentication
impl Serialize for BasicAuthentication
impl StructuralPartialEq for BasicAuthentication
Auto Trait Implementations§
impl Freeze for BasicAuthentication
impl RefUnwindSafe for BasicAuthentication
impl Send for BasicAuthentication
impl Sync for BasicAuthentication
impl Unpin for BasicAuthentication
impl UnwindSafe for BasicAuthentication
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