pub enum DeltaCredentials {
Default,
Aws(AwsCredentials),
Azure(AzureCredentials),
Gcp(GcpCredentials),
}Expand description
Object-store credentials for reading/writing a Delta table.
Uses the project-wide adjacently-tagged { type, config } shape
(snake_case discriminators): e.g. credentials: { type: aws, config: { … } }.
The default is DeltaCredentials::Default, which resolves credentials from
the ambient environment / instance metadata via the object-store default
provider chain — nothing is injected into storage_options.
Variants§
Default
Resolve credentials from the ambient environment / default provider
chain (AWS instance profile, AZURE_* env, GCP ADC, …). Injects no
keys of its own.
Aws(AwsCredentials)
Static AWS credentials (or an S3-compatible endpoint such as MinIO).
Azure(AzureCredentials)
Azure Blob / ADLS Gen2 credentials.
Gcp(GcpCredentials)
Google Cloud Storage credentials.
Implementations§
Source§impl DeltaCredentials
impl DeltaCredentials
Sourcepub fn apply(&self, options: &mut HashMap<String, String>)
pub fn apply(&self, options: &mut HashMap<String, String>)
Merge the credential-derived keys into options, without overwriting
any key the user set explicitly. This makes explicit storage_options
authoritative — an escape hatch for keys this enum does not model.
Sourcepub fn storage_options(&self) -> HashMap<String, String>
pub fn storage_options(&self) -> HashMap<String, String>
The storage_options entries implied by these credentials.
Trait Implementations§
Source§impl Clone for DeltaCredentials
impl Clone for DeltaCredentials
Source§fn clone(&self) -> DeltaCredentials
fn clone(&self) -> DeltaCredentials
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeltaCredentials
impl Debug for DeltaCredentials
Source§impl Default for DeltaCredentials
impl Default for DeltaCredentials
Source§fn default() -> DeltaCredentials
fn default() -> DeltaCredentials
Source§impl<'de> Deserialize<'de> for DeltaCredentials
impl<'de> Deserialize<'de> for DeltaCredentials
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeltaCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeltaCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DeltaCredentials
Source§impl JsonSchema for DeltaCredentials
impl JsonSchema for DeltaCredentials
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DeltaCredentials
impl PartialEq for DeltaCredentials
Source§impl Serialize for DeltaCredentials
impl Serialize for DeltaCredentials
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DeltaCredentials
Auto Trait Implementations§
impl Freeze for DeltaCredentials
impl RefUnwindSafe for DeltaCredentials
impl Send for DeltaCredentials
impl Sync for DeltaCredentials
impl Unpin for DeltaCredentials
impl UnsafeUnpin for DeltaCredentials
impl UnwindSafe for DeltaCredentials
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
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