Struct hypers::serde_urlencoded::ser::StructVariantSerializer
source · pub struct StructVariantSerializer<'input, 'output, T>where
T: Target,{ /* private fields */ }Expand description
Struct variant serializer.
Never instantiated, struct variants are not supported.
Trait Implementations§
source§impl<'input, 'output, Target> SerializeStructVariant for StructVariantSerializer<'input, 'output, Target>where
Target: 'output + Target,
impl<'input, 'output, Target> SerializeStructVariant for StructVariantSerializer<'input, 'output, Target>where
Target: 'output + Target,
source§type Ok = &'output mut Serializer<'input, Target>
type Ok = &'output mut Serializer<'input, Target>
Must match the
Ok type of our Serializer.source§fn serialize_field<T>(
&mut self,
key: &'static str,
value: &T,
) -> Result<(), Error>
fn serialize_field<T>( &mut self, key: &'static str, value: &T, ) -> Result<(), Error>
Serialize a struct variant field.
source§fn end(
self,
) -> Result<<StructVariantSerializer<'input, 'output, Target> as SerializeStructVariant>::Ok, Error>
fn end( self, ) -> Result<<StructVariantSerializer<'input, 'output, Target> as SerializeStructVariant>::Ok, Error>
Finish serializing a struct variant.
Auto Trait Implementations§
impl<'input, 'output, T> Freeze for StructVariantSerializer<'input, 'output, T>
impl<'input, 'output, T> !RefUnwindSafe for StructVariantSerializer<'input, 'output, T>
impl<'input, 'output, T> !Send for StructVariantSerializer<'input, 'output, T>
impl<'input, 'output, T> !Sync for StructVariantSerializer<'input, 'output, T>
impl<'input, 'output, T> Unpin for StructVariantSerializer<'input, 'output, T>
impl<'input, 'output, T> !UnwindSafe for StructVariantSerializer<'input, 'output, T>
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