Struct polars_lazy::dsl::StrpTimeOptions
source · pub struct StrpTimeOptions {
pub date_dtype: DataType,
pub fmt: Option<String>,
pub strict: bool,
pub exact: bool,
pub cache: bool,
pub tz_aware: bool,
}
Fields§
§date_dtype: DataType
DataType to parse in. One of {Date, Datetime}
fmt: Option<String>
Formatting string
strict: bool
If set then polars will return an error if any date parsing fails
exact: bool
If polars may parse matches that not contain the whole string e.g. “foo-2021-01-01-bar” could match “2021-01-01”
cache: bool
use a cache of unique, converted dates to apply the datetime conversion.
tz_aware: bool
Parse a timezone aware timestamp
Trait Implementations§
source§impl Clone for StrpTimeOptions
impl Clone for StrpTimeOptions
source§fn clone(&self) -> StrpTimeOptions
fn clone(&self) -> StrpTimeOptions
Returns a copy of the value. Read more
1.0.0 · 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 StrpTimeOptions
impl Debug for StrpTimeOptions
source§impl Default for StrpTimeOptions
impl Default for StrpTimeOptions
source§fn default() -> StrpTimeOptions
fn default() -> StrpTimeOptions
Returns the “default value” for a type. Read more
source§impl Hash for StrpTimeOptions
impl Hash for StrpTimeOptions
source§impl PartialEq<StrpTimeOptions> for StrpTimeOptions
impl PartialEq<StrpTimeOptions> for StrpTimeOptions
source§fn eq(&self, other: &StrpTimeOptions) -> bool
fn eq(&self, other: &StrpTimeOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StrpTimeOptions
impl StructuralEq for StrpTimeOptions
impl StructuralPartialEq for StrpTimeOptions
Auto Trait Implementations§
impl RefUnwindSafe for StrpTimeOptions
impl Send for StrpTimeOptions
impl Sync for StrpTimeOptions
impl Unpin for StrpTimeOptions
impl UnwindSafe for StrpTimeOptions
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.