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 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