Struct scylla_cql::frame::value::CqlDate
source · pub struct CqlDate(pub u32);
Expand description
Native CQL date representation that allows for a bigger range of dates (-262145-1-1 to 262143-12-31).
Represented as number of days since -5877641-06-23 i.e. 2^31 days before unix epoch.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlDate
impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlDate
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 CqlDate
impl FromCqlVal<CqlValue> for CqlDate
source§impl PartialEq for CqlDate
impl PartialEq for CqlDate
source§impl SerializeValue for CqlDate
impl SerializeValue for CqlDate
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 CqlDate
impl Emptiable for CqlDate
impl Eq for CqlDate
impl StructuralPartialEq for CqlDate
Auto Trait Implementations§
impl Freeze for CqlDate
impl RefUnwindSafe for CqlDate
impl Send for CqlDate
impl Sync for CqlDate
impl Unpin for CqlDate
impl UnwindSafe for CqlDate
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
)