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_accessor: Option<Arc<StorageOptionsAccessor>>,
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: DurationRefresh offset for AWS credentials when using the legacy AWS credentials path.
For StorageOptionsAccessor, use refresh_offset_millis storage option instead.
aws_credentials: Option<AwsCredentialProvider>§object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>§storage_options_accessor: Option<Arc<StorageOptionsAccessor>>Unified storage options accessor with caching and automatic refresh
Provides storage options and optionally a dynamic provider for automatic
credential refresh. Use StorageOptionsAccessor::with_static_options() for static
options or StorageOptionsAccessor::with_initial_and_provider() for dynamic refresh.
use_constant_size_upload_parts: boolUse 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.
Source§impl ObjectStoreParams
impl ObjectStoreParams
Sourcepub fn get_accessor(&self) -> Option<Arc<StorageOptionsAccessor>>
pub fn get_accessor(&self) -> Option<Arc<StorageOptionsAccessor>>
Get the StorageOptionsAccessor from the params
Trait Implementations§
Source§impl Clone for ObjectStoreParams
impl Clone for ObjectStoreParams
Source§fn clone(&self) -> ObjectStoreParams
fn clone(&self) -> ObjectStoreParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectStoreParams
impl Debug for ObjectStoreParams
Source§impl Default for ObjectStoreParams
impl Default for ObjectStoreParams
Source§impl Hash for ObjectStoreParams
impl Hash for ObjectStoreParams
Source§impl PartialEq for ObjectStoreParams
impl PartialEq for ObjectStoreParams
impl Eq 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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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