pub enum AutoInitConfig {
Aws {
profile_name: Option<PlSmallStr>,
region_name: Option<PlSmallStr>,
auto_init_unhandled_key: Option<PlSmallStr>,
storage_options: BTreeMap<PlSmallStr, Option<PlSmallStr>>,
},
Azure {
tenant_id: Option<PlSmallStr>,
storage_account: Option<PlSmallStr>,
},
Gcp {},
GcpToken {
token: PlSmallStr,
},
}Available on crate features
cloud and polars-io only.Expand description
Inputs of an auto-initialized credential provider, extracted from storage_options and the
path on the client side.
Note: The JSON form of this is also the interface to the Python-side
_build_auto_init_credential_provider().
Variants§
Aws
Fields
§
profile_name: Option<PlSmallStr>§
region_name: Option<PlSmallStr>§
auto_init_unhandled_key: Option<PlSmallStr>§
storage_options: BTreeMap<PlSmallStr, Option<PlSmallStr>>Azure
Gcp
GcpToken
Fields
§
token: PlSmallStrTrait Implementations§
Source§impl Clone for AutoInitConfig
impl Clone for AutoInitConfig
Source§fn clone(&self) -> AutoInitConfig
fn clone(&self) -> AutoInitConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutoInitConfig
impl Debug for AutoInitConfig
Source§impl<'de> Deserialize<'de> for AutoInitConfig
impl<'de> Deserialize<'de> for AutoInitConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AutoInitConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AutoInitConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AutoInitConfig
Source§impl Hash for AutoInitConfig
impl Hash for AutoInitConfig
Source§impl PartialEq for AutoInitConfig
impl PartialEq for AutoInitConfig
Source§impl Serialize for AutoInitConfig
impl Serialize for AutoInitConfig
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AutoInitConfig
Auto Trait Implementations§
impl Freeze for AutoInitConfig
impl RefUnwindSafe for AutoInitConfig
impl Send for AutoInitConfig
impl Sync for AutoInitConfig
impl Unpin for AutoInitConfig
impl UnsafeUnpin for AutoInitConfig
impl UnwindSafe for AutoInitConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more