Trait SerializeStructTuple

Source
pub trait SerializeStructTuple {
    // Required method
    fn serialize_fields_to_seq<S>(&self, seq: &mut S) -> Result<(), S::Error>
       where S: SerializeSeq;
}
Expand description

Trait for serializing a struct into a tuple of its fields.

Required Methods§

Source

fn serialize_fields_to_seq<S>(&self, seq: &mut S) -> Result<(), S::Error>
where S: SerializeSeq,

Serializes all struct fields to the given serde::ser::SerializeSeq, in declaration order.

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.

Implementors§