Struct polars_io::cloud::CloudLocation
source · pub struct CloudLocation {
pub scheme: String,
pub bucket: String,
pub prefix: String,
pub expansion: Option<String>,
}
Available on crate feature
cloud
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) -> PolarsResult<CloudLocation>
sourcepub fn new(url: &str) -> PolarsResult<CloudLocation>
pub fn new(url: &str) -> PolarsResult<CloudLocation>
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
source§fn eq(&self, other: &CloudLocation) -> bool
fn eq(&self, other: &CloudLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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