pub struct UtcTimestamp(pub DateTime<Utc>);Expand description
UTC-tagged timestamp wire type (Timestamp(us, tz="UTC")). User
holds a chrono::DateTime<Utc>.
Tuple Fields§
§0: DateTime<Utc>Trait Implementations§
Source§impl Clone for UtcTimestamp
impl Clone for UtcTimestamp
Source§fn clone(&self) -> UtcTimestamp
fn clone(&self) -> UtcTimestamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UtcTimestamp
impl Debug for UtcTimestamp
impl Eq for UtcTimestamp
Source§impl PartialEq for UtcTimestamp
impl PartialEq for UtcTimestamp
Source§fn eq(&self, other: &UtcTimestamp) -> bool
fn eq(&self, other: &UtcTimestamp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UtcTimestamp
Source§impl VgiArrow for UtcTimestamp
impl VgiArrow for UtcTimestamp
Source§fn arrow_data_type() -> DataType
fn arrow_data_type() -> DataType
The Arrow
DataType carrying values of this Rust type.Source§fn describe_name() -> String
fn describe_name() -> String
Wire-format type name surfaced via
__describe__ metadata.
Mirrors Python: "str", "int", "list[int]", "int | None".Source§fn read(arr: &dyn Array, idx: usize) -> Result<Self>
fn read(arr: &dyn Array, idx: usize) -> Result<Self>
Pull this value out of
arr at row idx. Errors with a
RpcError::type_error if arr’s concrete type doesn’t match
Self::arrow_data_type().Source§fn build_singleton(value: Self) -> Result<ArrayRef>
fn build_singleton(value: Self) -> Result<ArrayRef>
Build a 1-row
ArrayRef containing value.Auto Trait Implementations§
impl Freeze for UtcTimestamp
impl RefUnwindSafe for UtcTimestamp
impl Send for UtcTimestamp
impl Sync for UtcTimestamp
impl Unpin for UtcTimestamp
impl UnsafeUnpin for UtcTimestamp
impl UnwindSafe for UtcTimestamp
Blanket Implementations§
impl<T> Allocation for T
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