pub struct Basic {
pub username: String,
pub password: Option<String>,
}
Fields§
§username: String
§password: Option<String>
Implementations§
Trait Implementations§
Source§impl From<Authorization<Basic>> for Basic
impl From<Authorization<Basic>> for Basic
Source§fn from(val: Authorization<Self>) -> Self
fn from(val: Authorization<Self>) -> Self
Converts to this type from the input type.
Source§impl TryFrom<HeaderValue> for Basic
impl TryFrom<HeaderValue> for Basic
Auto Trait Implementations§
impl Freeze for Basic
impl RefUnwindSafe for Basic
impl Send for Basic
impl Sync for Basic
impl Unpin for Basic
impl UnwindSafe for Basic
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