Struct scylla_cql::frame::value::CqlTime
source · pub struct CqlTime(pub i64);
Expand description
Native CQL time representation.
Represented as nanoseconds since midnight.
Tuple Fields§
§0: i64
Trait Implementations§
source§impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlTime
impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlTime
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 CqlTime
impl FromCqlVal<CqlValue> for CqlTime
source§impl PartialEq for CqlTime
impl PartialEq for CqlTime
source§impl SerializeValue for CqlTime
impl SerializeValue for CqlTime
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
impl Copy for CqlTime
impl Emptiable for CqlTime
impl Eq for CqlTime
impl StructuralPartialEq for CqlTime
Auto Trait Implementations§
impl Freeze for CqlTime
impl RefUnwindSafe for CqlTime
impl Send for CqlTime
impl Sync for CqlTime
impl Unpin for CqlTime
impl UnwindSafe for CqlTime
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
)