pub struct CloudLocation {
pub scheme: String,
pub bucket: String,
pub prefix: String,
pub expansion: Option<String>,
}
Available on crate feature
polars-io
only.Expand description
A location on cloud storage, may have wildcards.
Fields§
§scheme: String
The scheme (s3, …).
bucket: String
The bucket name.
prefix: String
The prefix inside the bucket, this will be the full key when wildcards are not used.
expansion: Option<String>
The path components that need to be expanded.
Implementations§
Source§impl CloudLocation
impl CloudLocation
pub fn from_url(parsed: &Url, glob: bool) -> Result<CloudLocation, PolarsError>
Sourcepub fn new(url: &str, glob: bool) -> Result<CloudLocation, PolarsError>
pub fn new(url: &str, glob: bool) -> Result<CloudLocation, PolarsError>
Parse a CloudLocation from an url.
Trait Implementations§
Source§impl Debug for CloudLocation
impl Debug for CloudLocation
Source§impl Default for CloudLocation
impl Default for CloudLocation
Source§fn default() -> CloudLocation
fn default() -> CloudLocation
Returns the “default value” for a type. Read more
Source§impl PartialEq for CloudLocation
impl PartialEq for CloudLocation
impl StructuralPartialEq for CloudLocation
Auto Trait Implementations§
impl Freeze for CloudLocation
impl RefUnwindSafe for CloudLocation
impl Send for CloudLocation
impl Sync for CloudLocation
impl Unpin for CloudLocation
impl UnwindSafe for CloudLocation
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more