pub struct Config {
pub username: String,
pub password: String,
pub base_url: Option<String>,
pub timeout: Option<Duration>,
pub http_client_hook: Option<Arc<dyn Fn(ClientBuilder) -> ClientBuilder + Send + Sync>>,
}Fields§
§username: String§password: String§base_url: Option<String>§timeout: Option<Duration>§http_client_hook: Option<Arc<dyn Fn(ClientBuilder) -> ClientBuilder + Send + Sync>>Implementations§
Source§impl Config
impl Config
pub fn new<S: Into<String>>(username: S, password: S) -> Self
pub fn with_base_url<S: Into<String>>(self, base_url: S) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_http_client_hook( self, hook: Arc<dyn Fn(ClientBuilder) -> ClientBuilder + Send + Sync>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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