Struct lychee_lib::BasicAuthSelector
source · pub struct BasicAuthSelector {
pub credentials: BasicAuthCredentials,
pub raw_uri_regex: String,
}Expand description
BasicAuthSelector provides basic auth credentials for URLs which match
the specified regex. This allows users to set different credentials based
on the URLs they want to target.
Fields§
§credentials: BasicAuthCredentialsThe basic auth credentials made up of username and password
raw_uri_regex: StringThis regex matches URLs which will use the basic auth credentials
Trait Implementations§
source§impl Clone for BasicAuthSelector
impl Clone for BasicAuthSelector
source§fn clone(&self) -> BasicAuthSelector
fn clone(&self) -> BasicAuthSelector
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 BasicAuthSelector
impl Debug for BasicAuthSelector
source§impl<'de> Deserialize<'de> for BasicAuthSelector
impl<'de> Deserialize<'de> for BasicAuthSelector
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 FromStr for BasicAuthSelector
impl FromStr for BasicAuthSelector
source§impl PartialEq for BasicAuthSelector
impl PartialEq for BasicAuthSelector
source§fn eq(&self, other: &BasicAuthSelector) -> bool
fn eq(&self, other: &BasicAuthSelector) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BasicAuthSelector
Auto Trait Implementations§
impl RefUnwindSafe for BasicAuthSelector
impl Send for BasicAuthSelector
impl Sync for BasicAuthSelector
impl Unpin for BasicAuthSelector
impl UnwindSafe for BasicAuthSelector
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