pub struct BasicAuthCredential<E = ()> {
pub username: Option<EditableField<EditableFieldString, E>>,
pub password: Option<EditableField<EditableFieldConcealedString, E>>,
}Expand description
A BasicAuthCredential contains a username/password login credential. Can either represent a Basic access authentication or a form on a web page.
A BasicAuthCredential SHOULD have an accompanying super::CredentialScope in the credentials array. This indicates in which websites or applications these fields SHOULD be presented.
Fields§
§username: Option<EditableField<EditableFieldString, E>>The username associated with the credential.
password: Option<EditableField<EditableFieldConcealedString, E>>The password associated with the credential.
Trait Implementations§
Source§impl<E: Clone> Clone for BasicAuthCredential<E>
impl<E: Clone> Clone for BasicAuthCredential<E>
Source§fn clone(&self) -> BasicAuthCredential<E>
fn clone(&self) -> BasicAuthCredential<E>
Returns a duplicate 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<E: Debug> Debug for BasicAuthCredential<E>
impl<E: Debug> Debug for BasicAuthCredential<E>
Source§impl<E: Default> Default for BasicAuthCredential<E>
impl<E: Default> Default for BasicAuthCredential<E>
Source§fn default() -> BasicAuthCredential<E>
fn default() -> BasicAuthCredential<E>
Returns the “default value” for a type. Read more
Source§impl<'de, E> Deserialize<'de> for BasicAuthCredential<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for BasicAuthCredential<E>where
E: Deserialize<'de>,
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<E> Freeze for BasicAuthCredential<E>
impl<E> RefUnwindSafe for BasicAuthCredential<E>where
E: RefUnwindSafe,
impl<E> Send for BasicAuthCredential<E>where
E: Send,
impl<E> Sync for BasicAuthCredential<E>where
E: Sync,
impl<E> Unpin for BasicAuthCredential<E>where
E: Unpin,
impl<E> UnwindSafe for BasicAuthCredential<E>where
E: UnwindSafe,
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