Enum object_store::ClientConfigKey
source · #[non_exhaustive]pub enum ClientConfigKey {
Show 16 variants
AllowHttp,
AllowInvalidCertificates,
ConnectTimeout,
DefaultContentType,
Http1Only,
Http2KeepAliveInterval,
Http2KeepAliveTimeout,
Http2KeepAliveWhileIdle,
Http2Only,
PoolIdleTimeout,
PoolMaxIdlePerHost,
ProxyUrl,
ProxyCaCertificate,
ProxyExcludes,
Timeout,
UserAgent,
}
Expand description
Configuration keys for ClientOptions
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AllowHttp
Allow non-TLS, i.e. non-HTTPS connections
AllowInvalidCertificates
Skip certificate validation on https connections.
§Warning
You should think very carefully before using this method. If invalid certificates are trusted, any certificate for any site will be trusted for use. This includes expired certificates. This introduces significant vulnerabilities, and should only be used as a last resort or for testing
ConnectTimeout
Timeout for only the connect phase of a Client
DefaultContentType
default CONTENT_TYPE for uploads
Http1Only
Only use http1 connections
Http2KeepAliveInterval
Interval for HTTP2 Ping frames should be sent to keep a connection alive.
Http2KeepAliveTimeout
Timeout for receiving an acknowledgement of the keep-alive ping.
Http2KeepAliveWhileIdle
Enable HTTP2 keep alive pings for idle connections
Http2Only
Only use http2 connections
PoolIdleTimeout
The pool max idle timeout
This is the length of time an idle connection will be kept alive
PoolMaxIdlePerHost
maximum number of idle connections per host
ProxyUrl
HTTP proxy to use for requests
ProxyCaCertificate
PEM-formatted CA certificate for proxy connections
ProxyExcludes
List of hosts that bypass proxy
Timeout
Request timeout
The timeout is applied from when the request starts connecting until the response body has finished
UserAgent
User-Agent header to be used by this client
Trait Implementations§
source§impl AsRef<str> for ClientConfigKey
impl AsRef<str> for ClientConfigKey
source§impl Clone for ClientConfigKey
impl Clone for ClientConfigKey
source§fn clone(&self) -> ClientConfigKey
fn clone(&self) -> ClientConfigKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClientConfigKey
impl Debug for ClientConfigKey
source§impl<'de> Deserialize<'de> for ClientConfigKey
impl<'de> Deserialize<'de> for ClientConfigKey
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>,
source§impl FromStr for ClientConfigKey
impl FromStr for ClientConfigKey
source§impl Hash for ClientConfigKey
impl Hash for ClientConfigKey
source§impl PartialEq for ClientConfigKey
impl PartialEq for ClientConfigKey
source§impl Serialize for ClientConfigKey
impl Serialize for ClientConfigKey
impl Copy for ClientConfigKey
impl Eq for ClientConfigKey
impl StructuralPartialEq for ClientConfigKey
Auto Trait Implementations§
impl Freeze for ClientConfigKey
impl RefUnwindSafe for ClientConfigKey
impl Send for ClientConfigKey
impl Sync for ClientConfigKey
impl Unpin for ClientConfigKey
impl UnwindSafe for ClientConfigKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more