Enum ion_schema::isl::util::TimestampPrecision
source · pub enum TimestampPrecision {
Year,
Month,
Day,
Minute,
Second,
Millisecond,
Microsecond,
Nanosecond,
OtherFractionalSeconds(i64),
}
Variants§
Implementations§
source§impl TimestampPrecision
impl TimestampPrecision
pub fn from_timestamp(timestamp_value: &Timestamp) -> TimestampPrecision
Trait Implementations§
source§impl Clone for TimestampPrecision
impl Clone for TimestampPrecision
source§fn clone(&self) -> TimestampPrecision
fn clone(&self) -> TimestampPrecision
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 TimestampPrecision
impl Debug for TimestampPrecision
source§impl Display for TimestampPrecision
impl Display for TimestampPrecision
source§impl From<TimestampPrecision> for Element
impl From<TimestampPrecision> for Element
source§fn from(value: TimestampPrecision) -> Self
fn from(value: TimestampPrecision) -> Self
Converts to this type from the input type.
source§impl PartialEq for TimestampPrecision
impl PartialEq for TimestampPrecision
source§fn eq(&self, other: &TimestampPrecision) -> bool
fn eq(&self, other: &TimestampPrecision) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimestampPrecision
impl PartialOrd for TimestampPrecision
source§fn partial_cmp(&self, other: &TimestampPrecision) -> Option<Ordering>
fn partial_cmp(&self, other: &TimestampPrecision) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&str> for TimestampPrecision
impl TryFrom<&str> for TimestampPrecision
source§impl WriteToIsl for TimestampPrecision
impl WriteToIsl for TimestampPrecision
impl Eq for TimestampPrecision
impl StructuralPartialEq for TimestampPrecision
Auto Trait Implementations§
impl RefUnwindSafe for TimestampPrecision
impl Send for TimestampPrecision
impl Sync for TimestampPrecision
impl Unpin for TimestampPrecision
impl UnwindSafe for TimestampPrecision
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