pub enum ObjectStorageLocation {
AwsS3 {
region: String,
bucket: String,
prefix: String,
},
S3Compatible {
endpoint: String,
url_style: S3UrlStyle,
bucket: String,
prefix: String,
},
AzureBlob {
account_endpoint: String,
container: String,
prefix: String,
},
}Expand description
Canonical object-storage namespace owned by one Datastore binding.
Variants§
Implementations§
Source§impl ObjectStorageLocation
impl ObjectStorageLocation
pub fn aws_s3_for_datastore( region: impl Into<String>, bucket: impl Into<String>, base_prefix: Option<&str>, datastore_prefix: &str, ) -> Result<Self, LakeError>
pub fn s3_compatible_for_datastore( endpoint: impl Into<String>, url_style: S3UrlStyle, bucket: impl Into<String>, base_prefix: Option<&str>, datastore_prefix: &str, ) -> Result<Self, LakeError>
pub fn azure_blob_for_datastore( account_endpoint: impl Into<String>, container: impl Into<String>, base_prefix: Option<&str>, datastore_prefix: &str, ) -> Result<Self, LakeError>
pub fn canonical_data_path(&self) -> String
Trait Implementations§
Source§impl Clone for ObjectStorageLocation
impl Clone for ObjectStorageLocation
Source§fn clone(&self) -> ObjectStorageLocation
fn clone(&self) -> ObjectStorageLocation
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 ObjectStorageLocation
impl Debug for ObjectStorageLocation
Source§impl PartialEq for ObjectStorageLocation
impl PartialEq for ObjectStorageLocation
impl Eq for ObjectStorageLocation
impl StructuralPartialEq for ObjectStorageLocation
Auto Trait Implementations§
impl Freeze for ObjectStorageLocation
impl RefUnwindSafe for ObjectStorageLocation
impl Send for ObjectStorageLocation
impl Sync for ObjectStorageLocation
impl Unpin for ObjectStorageLocation
impl UnsafeUnpin for ObjectStorageLocation
impl UnwindSafe for ObjectStorageLocation
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.