pub struct ObjectStoreClientConfig {
pub endpoint_url: Option<String>,
pub bucket: String,
pub region: String,
pub credentials: ObjectStoreCredentials,
pub signed_url_ttl_secs: u64,
pub allow_http: bool,
pub virtual_hosted_style_request: bool,
}Fields§
§endpoint_url: Option<String>§bucket: String§region: String§credentials: ObjectStoreCredentials§signed_url_ttl_secs: u64§allow_http: bool§virtual_hosted_style_request: boolImplementations§
Source§impl ObjectStoreClientConfig
impl ObjectStoreClientConfig
pub fn new( bucket: impl Into<String>, region: impl Into<String>, ) -> Result<Self, ObjectStoreClientConfigError>
pub fn from_secret_value( secret_value: &str, ) -> Result<Self, ObjectStoreClientConfigError>
pub fn from_structured_secret_value( secret_value: &str, ) -> Result<Self, ObjectStoreClientConfigError>
pub fn with_endpoint_url( self, endpoint_url: impl Into<String>, ) -> Result<Self, ObjectStoreClientConfigError>
pub fn with_static_credentials( self, access_key_id: impl Into<String>, secret_access_key: impl Into<String>, ) -> Result<Self, ObjectStoreClientConfigError>
pub fn with_session_token(self, token: impl Into<String>) -> Self
pub fn with_signed_url_ttl_secs(self, signed_url_ttl_secs: u64) -> Self
pub fn with_virtual_hosted_style_request( self, virtual_hosted_style_request: bool, ) -> Self
Trait Implementations§
Source§impl Clone for ObjectStoreClientConfig
impl Clone for ObjectStoreClientConfig
Source§fn clone(&self) -> ObjectStoreClientConfig
fn clone(&self) -> ObjectStoreClientConfig
Returns a duplicate 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 ObjectStoreClientConfig
impl Debug for ObjectStoreClientConfig
Source§impl PartialEq for ObjectStoreClientConfig
impl PartialEq for ObjectStoreClientConfig
impl Eq for ObjectStoreClientConfig
impl StructuralPartialEq for ObjectStoreClientConfig
Auto Trait Implementations§
impl Freeze for ObjectStoreClientConfig
impl RefUnwindSafe for ObjectStoreClientConfig
impl Send for ObjectStoreClientConfig
impl Sync for ObjectStoreClientConfig
impl Unpin for ObjectStoreClientConfig
impl UnsafeUnpin for ObjectStoreClientConfig
impl UnwindSafe for ObjectStoreClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
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>
Converts
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>
Converts
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