Struct scylla_cql::frame::value::CqlTimestamp
source · pub struct CqlTimestamp(pub i64);
Expand description
Native CQL timestamp representation that allows full supported timestamp range.
Represented as signed milliseconds since unix epoch.
Tuple Fields§
§0: i64
Trait Implementations§
source§impl Clone for CqlTimestamp
impl Clone for CqlTimestamp
source§fn clone(&self) -> CqlTimestamp
fn clone(&self) -> CqlTimestamp
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 CqlTimestamp
impl Debug for CqlTimestamp
source§impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlTimestamp
impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlTimestamp
source§fn type_check(typ: &ColumnType<'_>) -> Result<(), TypeCheckError>
fn type_check(typ: &ColumnType<'_>) -> Result<(), TypeCheckError>
Checks that the column type matches what this type expects.
source§fn deserialize(
typ: &'metadata ColumnType<'metadata>,
v: Option<FrameSlice<'frame>>,
) -> Result<Self, DeserializationError>
fn deserialize( typ: &'metadata ColumnType<'metadata>, v: Option<FrameSlice<'frame>>, ) -> Result<Self, DeserializationError>
Deserialize a column value from given serialized representation. Read more
source§impl FromCqlVal<CqlValue> for CqlTimestamp
impl FromCqlVal<CqlValue> for CqlTimestamp
source§fn from_cql(cql_val: CqlValue) -> Result<CqlTimestamp, FromCqlValError>
fn from_cql(cql_val: CqlValue) -> Result<CqlTimestamp, FromCqlValError>
👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§impl PartialEq for CqlTimestamp
impl PartialEq for CqlTimestamp
source§fn eq(&self, other: &CqlTimestamp) -> bool
fn eq(&self, other: &CqlTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SerializeValue for CqlTimestamp
impl SerializeValue for CqlTimestamp
source§fn serialize<'b>(
&self,
typ: &ColumnType<'_>,
writer: CellWriter<'b>,
) -> Result<WrittenCellProof<'b>, SerializationError>
fn serialize<'b>( &self, typ: &ColumnType<'_>, writer: CellWriter<'b>, ) -> Result<WrittenCellProof<'b>, SerializationError>
Serializes the value to given CQL type. Read more
source§impl Value for CqlTimestamp
impl Value for CqlTimestamp
impl Copy for CqlTimestamp
impl Emptiable for CqlTimestamp
impl Eq for CqlTimestamp
impl StructuralPartialEq for CqlTimestamp
Auto Trait Implementations§
impl Freeze for CqlTimestamp
impl RefUnwindSafe for CqlTimestamp
impl Send for CqlTimestamp
impl Sync for CqlTimestamp
impl Unpin for CqlTimestamp
impl UnwindSafe for CqlTimestamp
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
)