pub struct StructVariantSerializer { /* private fields */ }Trait Implementations§
Source§impl SerializeStructVariant for StructVariantSerializer
impl SerializeStructVariant for StructVariantSerializer
Source§type Ok = ConfigValue
type Ok = ConfigValue
Must match the
Ok type of our Serializer.Source§type Error = DeserializeError
type Error = DeserializeError
Must match the
Error type of our Serializer.Source§fn serialize_field<T: Serialize + ?Sized>(
&mut self,
key: &'static str,
value: &T,
) -> Result<(), DeserializeError>
fn serialize_field<T: Serialize + ?Sized>( &mut self, key: &'static str, value: &T, ) -> Result<(), DeserializeError>
Serialize a struct variant field.
Source§fn end(self) -> Result<ConfigValue, DeserializeError>
fn end(self) -> Result<ConfigValue, DeserializeError>
Finish serializing a struct variant.
Auto Trait Implementations§
impl Freeze for StructVariantSerializer
impl RefUnwindSafe for StructVariantSerializer
impl Send for StructVariantSerializer
impl Sync for StructVariantSerializer
impl Unpin for StructVariantSerializer
impl UnsafeUnpin for StructVariantSerializer
impl UnwindSafe for StructVariantSerializer
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