Struct scylla_cql::types::serialize::batch::LegacyBatchValuesAdapter
source ยท pub struct LegacyBatchValuesAdapter<T>(pub T);
๐Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Expand description
A newtype wrapper which adjusts an existing types that implement
LegacyBatchValues
to the current BatchValues
API.
Note that the LegacyBatchValues
trait is deprecated and will be
removed in the future, and you should prefer using BatchValues
as it is
more type-safe.
Tuple Fieldsยง
ยง0: T
๐Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Trait Implementationsยง
sourceยงimpl<T> BatchValues for LegacyBatchValuesAdapter<T>where
T: LegacyBatchValues,
impl<T> BatchValues for LegacyBatchValuesAdapter<T>where
T: LegacyBatchValues,
ยงtype BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>>
where
Self: 'r
type BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where Self: 'r
An
Iterator
-like object over the values from the parent BatchValues
object.sourceยงfn batch_values_iter(&self) -> Self::BatchValuesIter<'_>
fn batch_values_iter(&self) -> Self::BatchValuesIter<'_>
Returns an iterator over the data contained in this object.
Auto Trait Implementationsยง
impl<T> Freeze for LegacyBatchValuesAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for LegacyBatchValuesAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for LegacyBatchValuesAdapter<T>where
T: Send,
impl<T> Sync for LegacyBatchValuesAdapter<T>where
T: Sync,
impl<T> Unpin for LegacyBatchValuesAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for LegacyBatchValuesAdapter<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