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 u64
impl From<PoSQLTimeUnit> for u64
Source§fn from(value: PoSQLTimeUnit) -> u64
fn from(value: PoSQLTimeUnit) -> u64
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
Source§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