Trait serde::ser::SerializeStruct [] [src]

pub trait SerializeStruct {
    type Ok;
    type Error: Error;
    fn serialize_field<V: Serialize>(&mut self,
                                     key: &'static str,
                                     value: V)
                                     -> Result<(), Self::Error>; fn end(self) -> Result<Self::Ok, Self::Error>; }

Returned from Serializer::serialize_struct.

Associated Types

Trickery to enforce correct use of the Serialize trait. Every SerializeStruct should set Ok = ().

The error type when some error occurs during serialization.

Required Methods

Serializes a struct field.

Finishes serializing a struct.

Implementors