Struct scylla_cql::frame::value::CqlDuration
source · pub struct CqlDuration {
pub months: i32,
pub days: i32,
pub nanoseconds: i64,
}
Expand description
Represents a CQL Duration value
Fields§
§months: i32
§days: i32
§nanoseconds: i64
Trait Implementations§
source§impl Clone for CqlDuration
impl Clone for CqlDuration
source§fn clone(&self) -> CqlDuration
fn clone(&self) -> CqlDuration
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 CqlDuration
impl Debug for CqlDuration
source§impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlDuration
impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for CqlDuration
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 CqlDuration
impl FromCqlVal<CqlValue> for CqlDuration
source§fn from_cql(cql_val: CqlValue) -> Result<CqlDuration, FromCqlValError>
fn from_cql(cql_val: CqlValue) -> Result<CqlDuration, FromCqlValError>
👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§impl PartialEq for CqlDuration
impl PartialEq for CqlDuration
source§fn eq(&self, other: &CqlDuration) -> bool
fn eq(&self, other: &CqlDuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SerializeValue for CqlDuration
impl SerializeValue for CqlDuration
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 CqlDuration
impl Value for CqlDuration
impl Copy for CqlDuration
impl Eq for CqlDuration
impl StructuralPartialEq for CqlDuration
Auto Trait Implementations§
impl Freeze for CqlDuration
impl RefUnwindSafe for CqlDuration
impl Send for CqlDuration
impl Sync for CqlDuration
impl Unpin for CqlDuration
impl UnwindSafe for CqlDuration
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
)