Struct lance_core::io::object_store::ObjectStoreParams
source · pub struct ObjectStoreParams {
pub object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>,
pub s3_credentials_refresh_offset: Duration,
pub aws_credentials: Option<Arc<dyn CredentialProvider<Credential = AwsCredential>>>,
pub aws_region: Option<String>,
pub commit_handler: Option<Arc<dyn CommitHandler>>,
}Expand description
Parameters to create an ObjectStore
Fields§
§object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>§s3_credentials_refresh_offset: Duration§aws_credentials: Option<Arc<dyn CredentialProvider<Credential = AwsCredential>>>§aws_region: Option<String>§commit_handler: Option<Arc<dyn CommitHandler>>Implementations§
source§impl ObjectStoreParams
impl ObjectStoreParams
pub fn with_aws_credentials( credentials: Option<Arc<dyn CredentialProvider<Credential = ObjectStoreAwsCredential>>>, region: Option<String> ) -> Self
sourcepub fn set_commit_lock<T: CommitLock + Send + Sync + 'static>(
&mut self,
lock: Arc<T>
)
pub fn set_commit_lock<T: CommitLock + Send + Sync + 'static>( &mut self, lock: Arc<T> )
Set a commit lock for the object store.
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 !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