Enum taos_query::common::Timestamp
source · [−]Variants
Milliseconds(i64)
Microseconds(i64)
Nanoseconds(i64)
Implementations
sourceimpl Timestamp
impl Timestamp
pub fn new(raw: i64, precision: Precision) -> Self
pub fn precision(&self) -> Precision
pub fn as_raw_i64(&self) -> i64
pub fn to_naive_datetime(&self) -> NaiveDateTime
pub fn to_datetime_with_tz(&self) -> DateTime<Local>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Timestamp
impl<'de> Deserialize<'de> for Timestamp
sourcefn 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
sourceimpl PartialEq<Timestamp> for Timestamp
impl PartialEq<Timestamp> for Timestamp
impl Copy for Timestamp
impl Eq for Timestamp
impl StructuralEq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more