Enum proof_of_sql::base::time::timestamp::PoSQLTimeUnit
source · pub enum PoSQLTimeUnit {
Second,
Millisecond,
Microsecond,
Nanosecond,
}
Expand description
Specifies different units of time measurement relative to the Unix epoch. It is essentially a wrapper over arrow::datatypes::TimeUnit so that we can derive Copy and implement custom traits such as bit distribution and Hash.
Variants§
Second
Represents a time unit of one second.
Millisecond
Represents a time unit of one millisecond (1/1,000 of a second).
Microsecond
Represents a time unit of one microsecond (1/1,000,000 of a second).
Nanosecond
Represents a time unit of one nanosecond (1/1,000,000,000 of a second).
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§fn eq(&self, other: &PoSQLTimeUnit) -> bool
fn eq(&self, other: &PoSQLTimeUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PoSQLTimeUnit
impl Serialize for PoSQLTimeUnit
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: 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<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<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§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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more