pub struct CloudLocation {
pub scheme: PlSmallStr,
pub bucket: PlSmallStr,
pub prefix: String,
pub expansion: Option<PlSmallStr>,
}
Available on crate feature
cloud
only.Expand description
A location on cloud storage, may have wildcards.
Fields§
§scheme: PlSmallStr
The scheme (s3, …).
bucket: PlSmallStr
The bucket name.
prefix: String
The prefix inside the bucket, this will be the full key when wildcards are not used.
expansion: Option<PlSmallStr>
The path components that need to be expanded.
Implementations§
Source§impl CloudLocation
impl CloudLocation
pub fn from_url(parsed: &Url, glob: bool) -> PolarsResult<CloudLocation>
Sourcepub fn new(url: &str, glob: bool) -> PolarsResult<CloudLocation>
pub fn new(url: &str, glob: bool) -> 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
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