Struct polars_plan::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: DataTypeDataType to parse in. One of {Date, Datetime}
fmt: Option<String>Formatting string
strict: boolIf set then polars will return an error if any date parsing fails
exact: boolIf polars may parse matches that not contain the whole string e.g. “foo-2021-01-01-bar” could match “2021-01-01”
cache: booluse a cache of unique, converted dates to apply the datetime conversion.
tz_aware: boolParse 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§impl<'de> Deserialize<'de> for StrpTimeOptions
impl<'de> Deserialize<'de> for StrpTimeOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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 ==.source§impl Serialize for StrpTimeOptions
impl Serialize for StrpTimeOptions
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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more