pub struct CloudOptions {
pub file_cache_ttl: u64,
pub retry_config: CloudRetryConfig,
/* private fields */
}Expand description
Options to connect to various cloud providers.
Fields§
§file_cache_ttl: u64§retry_config: CloudRetryConfigImplementations§
Source§impl CloudOptions
impl CloudOptions
pub fn default_static_ref() -> &'static CloudOptions
Source§impl CloudOptions
impl CloudOptions
pub fn with_retry_config(self, retry_config: CloudRetryConfig) -> CloudOptions
pub fn with_credential_provider( self, credential_provider: Option<PlCredentialProvider>, ) -> CloudOptions
pub fn build_http(&self, url: &str) -> Result<impl ObjectStore, PolarsError>
Sourcepub fn from_untyped_config<I>(
scheme: Option<CloudScheme>,
config: I,
) -> Result<CloudOptions, PolarsError>
pub fn from_untyped_config<I>( scheme: Option<CloudScheme>, config: I, ) -> Result<CloudOptions, PolarsError>
Parse a configuration from a Hashmap. This is the interface from Python.
Trait Implementations§
Source§impl Clone for CloudOptions
impl Clone for CloudOptions
Source§fn clone(&self) -> CloudOptions
fn clone(&self) -> CloudOptions
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 CloudOptions
impl Debug for CloudOptions
Source§impl Default for CloudOptions
impl Default for CloudOptions
Source§fn default() -> CloudOptions
fn default() -> CloudOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudOptions
impl<'de> Deserialize<'de> for CloudOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CloudOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CloudOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CloudOptions
impl Hash for CloudOptions
Source§impl PartialEq for CloudOptions
impl PartialEq for CloudOptions
Source§fn eq(&self, other: &CloudOptions) -> bool
fn eq(&self, other: &CloudOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CloudOptions
impl Serialize for CloudOptions
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 Eq for CloudOptions
impl StructuralPartialEq for CloudOptions
Auto Trait Implementations§
impl Freeze for CloudOptions
impl !RefUnwindSafe for CloudOptions
impl Send for CloudOptions
impl Sync for CloudOptions
impl Unpin for CloudOptions
impl UnsafeUnpin for CloudOptions
impl !UnwindSafe for CloudOptions
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
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> ⓘ
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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().