pub struct ValueAdapter<T>(pub T);
Expand description
Implements SerializeCql
if the type wrapped over implements Value
.
See the impl_serialize_cql_via_value
macro on information about
the properties of the SerializeCql
implementation.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> SerializeCql for ValueAdapter<T>where
T: Value,
impl<T> SerializeCql for ValueAdapter<T>where
T: Value,
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
Auto Trait Implementations§
impl<T> Freeze for ValueAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValueAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for ValueAdapter<T>where
T: Send,
impl<T> Sync for ValueAdapter<T>where
T: Sync,
impl<T> Unpin for ValueAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for ValueAdapter<T>where
T: UnwindSafe,
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