pub struct HttpStringSerializer { /* private fields */ }Expand description
Serializer for converting Smithy types to strings (for HTTP headers, query params, labels).
Implementations§
Trait Implementations§
Source§impl Default for HttpStringSerializer
impl Default for HttpStringSerializer
Source§impl ShapeSerializer for HttpStringSerializer
impl ShapeSerializer for HttpStringSerializer
Source§type Error = HttpStringCodecError
type Error = HttpStringCodecError
The error type returned by serialization operations.
Source§fn finish(self) -> Result<Self::Output, Self::Error>
fn finish(self) -> Result<Self::Output, Self::Error>
Finalizes the serialization and returns the serialized output. Read more
Source§fn write_struct<F>(
&mut self,
_schema: &dyn Schema,
_write_members: F,
) -> Result<(), Self::Error>
fn write_struct<F>( &mut self, _schema: &dyn Schema, _write_members: F, ) -> Result<(), Self::Error>
Writes a structure to the serializer. Read more
Source§fn write_list<F>(
&mut self,
_schema: &dyn Schema,
write_elements: F,
) -> Result<(), Self::Error>
fn write_list<F>( &mut self, _schema: &dyn Schema, write_elements: F, ) -> Result<(), Self::Error>
Writes a list to the serializer. Read more
Source§fn write_map<F>(
&mut self,
_schema: &dyn Schema,
_write_entries: F,
) -> Result<(), Self::Error>
fn write_map<F>( &mut self, _schema: &dyn Schema, _write_entries: F, ) -> Result<(), Self::Error>
Writes a map to the serializer. Read more
Source§fn write_boolean(
&mut self,
_schema: &dyn Schema,
value: bool,
) -> Result<(), Self::Error>
fn write_boolean( &mut self, _schema: &dyn Schema, value: bool, ) -> Result<(), Self::Error>
Writes a boolean value.
Source§fn write_byte(
&mut self,
_schema: &dyn Schema,
value: i8,
) -> Result<(), Self::Error>
fn write_byte( &mut self, _schema: &dyn Schema, value: i8, ) -> Result<(), Self::Error>
Writes a byte (i8) value.
Source§fn write_short(
&mut self,
_schema: &dyn Schema,
value: i16,
) -> Result<(), Self::Error>
fn write_short( &mut self, _schema: &dyn Schema, value: i16, ) -> Result<(), Self::Error>
Writes a short (i16) value.
Source§fn write_integer(
&mut self,
_schema: &dyn Schema,
value: i32,
) -> Result<(), Self::Error>
fn write_integer( &mut self, _schema: &dyn Schema, value: i32, ) -> Result<(), Self::Error>
Writes an integer (i32) value.
Source§fn write_long(
&mut self,
_schema: &dyn Schema,
value: i64,
) -> Result<(), Self::Error>
fn write_long( &mut self, _schema: &dyn Schema, value: i64, ) -> Result<(), Self::Error>
Writes a long (i64) value.
Source§fn write_float(
&mut self,
_schema: &dyn Schema,
value: f32,
) -> Result<(), Self::Error>
fn write_float( &mut self, _schema: &dyn Schema, value: f32, ) -> Result<(), Self::Error>
Writes a float (f32) value.
Source§fn write_double(
&mut self,
_schema: &dyn Schema,
value: f64,
) -> Result<(), Self::Error>
fn write_double( &mut self, _schema: &dyn Schema, value: f64, ) -> Result<(), Self::Error>
Writes a double (f64) value.
Source§fn write_big_integer(
&mut self,
_schema: &dyn Schema,
value: &BigInteger,
) -> Result<(), Self::Error>
fn write_big_integer( &mut self, _schema: &dyn Schema, value: &BigInteger, ) -> Result<(), Self::Error>
Writes a big integer value.
Source§fn write_big_decimal(
&mut self,
_schema: &dyn Schema,
value: &BigDecimal,
) -> Result<(), Self::Error>
fn write_big_decimal( &mut self, _schema: &dyn Schema, value: &BigDecimal, ) -> Result<(), Self::Error>
Writes a big decimal value.
Source§fn write_string(
&mut self,
_schema: &dyn Schema,
value: &str,
) -> Result<(), Self::Error>
fn write_string( &mut self, _schema: &dyn Schema, value: &str, ) -> Result<(), Self::Error>
Writes a string value.
Source§fn write_blob(
&mut self,
_schema: &dyn Schema,
value: &Blob,
) -> Result<(), Self::Error>
fn write_blob( &mut self, _schema: &dyn Schema, value: &Blob, ) -> Result<(), Self::Error>
Writes a blob (byte array) value.
Source§fn write_timestamp(
&mut self,
_schema: &dyn Schema,
value: &DateTime,
) -> Result<(), Self::Error>
fn write_timestamp( &mut self, _schema: &dyn Schema, value: &DateTime, ) -> Result<(), Self::Error>
Writes a timestamp value.
Auto Trait Implementations§
impl Freeze for HttpStringSerializer
impl RefUnwindSafe for HttpStringSerializer
impl Send for HttpStringSerializer
impl Sync for HttpStringSerializer
impl Unpin for HttpStringSerializer
impl UnwindSafe for HttpStringSerializer
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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