pub struct ObjectStoreParams {
pub block_size: Option<usize>,
pub object_store: Option<(Arc<DynObjectStore>, Url)>,
pub s3_credentials_refresh_offset: Duration,
pub aws_credentials: Option<AwsCredentialProvider>,
pub object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>,
pub storage_options: Option<HashMap<String, String>>,
pub use_constant_size_upload_parts: bool,
pub list_is_lexically_ordered: Option<bool>,
}
Expand description
Parameters to create an ObjectStore
Fields§
§block_size: Option<usize>
§object_store: Option<(Arc<DynObjectStore>, Url)>
§s3_credentials_refresh_offset: Duration
§aws_credentials: Option<AwsCredentialProvider>
§object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>
§storage_options: Option<HashMap<String, String>>
§use_constant_size_upload_parts: bool
Use constant size upload parts for multipart uploads. Only necessary for Cloudflare R2, which doesn’t support variable size parts. When this is false, max upload size is 2.5TB. When this is true, the max size is 50GB.
list_is_lexically_ordered: Option<bool>
Implementations§
Source§impl ObjectStoreParams
impl ObjectStoreParams
Sourcepub fn with_aws_credentials(
aws_credentials: Option<AwsCredentialProvider>,
region: Option<String>,
) -> Self
pub fn with_aws_credentials( aws_credentials: Option<AwsCredentialProvider>, region: Option<String>, ) -> Self
Create a new instance of ObjectStoreParams
based on the AWS credentials.
Trait Implementations§
Source§impl Clone for ObjectStoreParams
impl Clone for ObjectStoreParams
Source§fn clone(&self) -> ObjectStoreParams
fn clone(&self) -> ObjectStoreParams
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 ObjectStoreParams
impl Debug for ObjectStoreParams
Auto Trait Implementations§
impl Freeze for ObjectStoreParams
impl !RefUnwindSafe for ObjectStoreParams
impl Send for ObjectStoreParams
impl Sync for ObjectStoreParams
impl Unpin for ObjectStoreParams
impl !UnwindSafe for ObjectStoreParams
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<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 moreCreates a shared type from an unshared type.