pub enum PoSQLTimeUnit {
    Second,
    Millisecond,
    Microsecond,
    Nanosecond,
}Expand description
Defines the precision of the timestamp An intermediate type representing the time units from a parsed query
Variants§
Second
Represents seconds with precision 0: ex “2024-06-20 12:34:56”
Millisecond
Represents milliseconds with precision 3: ex “2024-06-20 12:34:56.123”
Microsecond
Represents microseconds with precision 6: ex “2024-06-20 12:34:56.123456”
Nanosecond
Represents nanoseconds with precision 9: ex “2024-06-20 12:34:56.123456789”
Trait Implementations§
source§impl Clone for PoSQLTimeUnit
 
impl Clone for PoSQLTimeUnit
source§fn clone(&self) -> PoSQLTimeUnit
 
fn clone(&self) -> PoSQLTimeUnit
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 PoSQLTimeUnit
 
impl Debug for PoSQLTimeUnit
source§impl<'de> Deserialize<'de> for PoSQLTimeUnit
 
impl<'de> Deserialize<'de> for PoSQLTimeUnit
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 Display for PoSQLTimeUnit
 
impl Display for PoSQLTimeUnit
source§impl From<PoSQLTimeUnit> for TimeUnit
 
impl From<PoSQLTimeUnit> for TimeUnit
source§fn from(unit: PoSQLTimeUnit) -> Self
 
fn from(unit: PoSQLTimeUnit) -> Self
Converts to this type from the input type.
source§impl From<TimeUnit> for PoSQLTimeUnit
 
impl From<TimeUnit> for PoSQLTimeUnit
source§fn from(unit: ArrowTimeUnit) -> Self
 
fn from(unit: ArrowTimeUnit) -> Self
Converts to this type from the input type.
source§impl Hash for PoSQLTimeUnit
 
impl Hash for PoSQLTimeUnit
source§impl PartialEq for PoSQLTimeUnit
 
impl PartialEq for PoSQLTimeUnit
source§impl Serialize for PoSQLTimeUnit
 
impl Serialize for PoSQLTimeUnit
source§impl TryFrom<&str> for PoSQLTimeUnit
 
impl TryFrom<&str> for PoSQLTimeUnit
§type Error = PoSQLTimestampError
 
type Error = PoSQLTimestampError
The type returned in the event of a conversion error.
impl Copy for PoSQLTimeUnit
impl Eq for PoSQLTimeUnit
impl StructuralPartialEq for PoSQLTimeUnit
Auto Trait Implementations§
impl Freeze for PoSQLTimeUnit
impl RefUnwindSafe for PoSQLTimeUnit
impl Send for PoSQLTimeUnit
impl Sync for PoSQLTimeUnit
impl Unpin for PoSQLTimeUnit
impl UnwindSafe for PoSQLTimeUnit
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
    T: Copy,
 
impl<T> CloneToUninit for Twhere
    T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.