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 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 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 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ยงimpl PartialOrd for LegacySerializedValues
impl PartialOrd for LegacySerializedValues
Sourceยง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ยง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