pub struct BasicAuth {
pub username: String,
pub password: String,
}
Expand description
Basic auth options for Swagger UI. By providing BasicAuth
to
Config::basic_auth
the access to the Swagger UI can be restricted behind
given basic authentication.
Fields§
§username: String
Username for the BasicAuth
password: String
Password of the username
for the BasicAuth
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BasicAuth
impl RefUnwindSafe for BasicAuth
impl Send for BasicAuth
impl Sync for BasicAuth
impl Unpin for BasicAuth
impl UnwindSafe for BasicAuth
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