Module serde::ser::impls [] [src]

Implementations for all of Rust's builtin types. Tuples implement the Serialize trait if they have at most 16 fields. Arrays implement the Serialize trait if their length is 32 or less. You can always forward array serialization to slice serialization, which works for any length. Long tuples are best replaced by tuple structs, for which you can use derive(Serialize). In that case the number of fields is irrelevant.