Struct scylla::frame::value::LegacySerializedValues
source · pub struct LegacySerializedValues { /* private fields */ }
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Expand description
Keeps a buffer with serialized Values Allows adding new Values and iterating over serialized ones
Implementations§
source§impl LegacySerializedValues
impl LegacySerializedValues
sourcepub const fn new() -> LegacySerializedValues
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub const fn new() -> LegacySerializedValues
Creates empty value list
pub fn with_capacity(capacity: usize) -> LegacySerializedValues
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn has_names(&self) -> bool
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
sourcepub const EMPTY: &'static LegacySerializedValues = _
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub const EMPTY: &'static LegacySerializedValues = _
A const empty instance, useful for taking references
sourcepub fn add_value(
&mut self,
val: &impl Value,
) -> Result<(), SerializeValuesError>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn add_value( &mut self, val: &impl Value, ) -> Result<(), SerializeValuesError>
Serializes value and appends it to the list
pub fn add_named_value( &mut self, name: &str, val: &impl Value, ) -> Result<(), SerializeValuesError>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn iter(&self) -> impl Iterator<Item = RawValue<'_>>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn write_to_request(&self, buf: &mut impl BufMut)
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn is_empty(&self) -> bool
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn len(&self) -> u16
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn size(&self) -> usize
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
pub fn iter_name_value_pairs( &self, ) -> impl Iterator<Item = (Option<&str>, RawValue<'_>)>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Trait Implementations§
source§impl Clone for LegacySerializedValues
impl Clone for LegacySerializedValues
source§fn clone(&self) -> LegacySerializedValues
fn clone(&self) -> LegacySerializedValues
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 LegacySerializedValues
impl Debug for LegacySerializedValues
source§impl Default for LegacySerializedValues
impl Default for LegacySerializedValues
source§fn default() -> LegacySerializedValues
fn default() -> LegacySerializedValues
Returns the “default value” for a type. Read more
source§impl Ord for LegacySerializedValues
impl Ord for LegacySerializedValues
source§fn cmp(&self, other: &LegacySerializedValues) -> Ordering
fn cmp(&self, other: &LegacySerializedValues) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for LegacySerializedValues
impl PartialEq for LegacySerializedValues
source§fn eq(&self, other: &LegacySerializedValues) -> bool
fn eq(&self, other: &LegacySerializedValues) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LegacySerializedValues
impl PartialOrd for LegacySerializedValues
source§fn partial_cmp(&self, other: &LegacySerializedValues) -> Option<Ordering>
fn partial_cmp(&self, other: &LegacySerializedValues) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SerializeRow for LegacySerializedValues
impl SerializeRow for LegacySerializedValues
source§fn serialize(
&self,
ctx: &RowSerializationContext<'_>,
writer: &mut RowWriter<'_>,
) -> Result<(), SerializationError>
fn serialize( &self, ctx: &RowSerializationContext<'_>, writer: &mut RowWriter<'_>, ) -> Result<(), SerializationError>
Serializes the row according to the information in the given context. Read more
source§impl ValueList for LegacySerializedValues
impl ValueList for LegacySerializedValues
source§fn serialized(
&self,
) -> Result<Cow<'_, LegacySerializedValues>, SerializeValuesError>
fn serialized( &self, ) -> Result<Cow<'_, LegacySerializedValues>, SerializeValuesError>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Provides a view of ValueList as LegacySerializedValues
returns
Cow<LegacySerializedValues>
to make impl ValueList for LegacySerializedValues efficientsource§fn write_to_request(
&self,
buf: &mut impl BufMut,
) -> Result<(), SerializeValuesError>
fn write_to_request( &self, buf: &mut impl BufMut, ) -> Result<(), SerializeValuesError>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
impl Eq for LegacySerializedValues
impl StructuralPartialEq for LegacySerializedValues
Auto Trait Implementations§
impl Freeze for LegacySerializedValues
impl RefUnwindSafe for LegacySerializedValues
impl Send for LegacySerializedValues
impl Sync for LegacySerializedValues
impl Unpin for LegacySerializedValues
impl UnwindSafe for LegacySerializedValues
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: 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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more