pub struct OAuthHttpClientConfig {
pub timeout: Duration,
pub user_agent: Option<String>,
pub allow_private_ips: bool,
}Fields§
§timeout: Duration§user_agent: Option<String>§allow_private_ips: boolWhen false (the default), the client blocks requests that resolve to
private, loopback, or otherwise non-public IP addresses to mitigate
SSRF. Set to true only for deployments that intentionally talk to
internal identity providers.
Trait Implementations§
Source§impl Clone for OAuthHttpClientConfig
impl Clone for OAuthHttpClientConfig
Source§fn clone(&self) -> OAuthHttpClientConfig
fn clone(&self) -> OAuthHttpClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OAuthHttpClientConfig
impl Debug for OAuthHttpClientConfig
Source§impl Default for OAuthHttpClientConfig
impl Default for OAuthHttpClientConfig
impl Eq for OAuthHttpClientConfig
Source§impl PartialEq for OAuthHttpClientConfig
impl PartialEq for OAuthHttpClientConfig
Source§fn eq(&self, other: &OAuthHttpClientConfig) -> bool
fn eq(&self, other: &OAuthHttpClientConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OAuthHttpClientConfig
Auto Trait Implementations§
impl Freeze for OAuthHttpClientConfig
impl RefUnwindSafe for OAuthHttpClientConfig
impl Send for OAuthHttpClientConfig
impl Sync for OAuthHttpClientConfig
impl Unpin for OAuthHttpClientConfig
impl UnsafeUnpin for OAuthHttpClientConfig
impl UnwindSafe for OAuthHttpClientConfig
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