pub trait ValueList {
// Required method
fn serialized(
&self,
) -> Result<Cow<'_, LegacySerializedValues>, SerializeValuesError>;
// Provided method
fn write_to_request(
&self,
buf: &mut impl BufMut,
) -> Result<(), SerializeValuesError> { ... }
}
Expand description
Represents list of values to be sent in a query gets serialized and but into request
Required Methods§
Sourcefn serialized(
&self,
) -> Result<Cow<'_, LegacySerializedValues>, SerializeValuesError>
fn serialized( &self, ) -> Result<Cow<'_, LegacySerializedValues>, SerializeValuesError>
Provides a view of ValueList as LegacySerializedValues
returns Cow<LegacySerializedValues>
to make impl ValueList for LegacySerializedValues efficient
Provided Methods§
fn write_to_request( &self, buf: &mut impl BufMut, ) -> Result<(), SerializeValuesError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.