Trait serde::ser::Serialize

source ·
pub trait Serialize {
    // Required method
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
       where S: Serializer;
}
Expand description

A data structure that can be serialized into any data format supported by Serde.

Serde provides Serialize implementations for many Rust primitive and standard library types. The complete list is here. All of these can be serialized using Serde out of the box.

Additionally, Serde provides a procedural macro called serde_derive to automatically generate Serialize implementations for structs and enums in your program. See the derive section of the manual for how to use this.

In rare cases it may be necessary to implement Serialize manually for some type in your program. See the Implementing Serialize section of the manual for more about this.

Third-party crates may provide Serialize implementations for types that they expose. For example the linked-hash-map crate provides a LinkedHashMap<K, V> type that is serializable by Serde because the crate provides an implementation of Serialize for it.

Required Methods§

source

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer.

See the Implementing Serialize section of the manual for more information about how to implement this method.

use serde::ser::{Serialize, SerializeStruct, Serializer};

struct Person {
    name: String,
    age: u8,
    phones: Vec<String>,
}

// This is what #[derive(Serialize)] would generate.
impl Serialize for Person {
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where
        S: Serializer,
    {
        let mut s = serializer.serialize_struct("Person", 3)?;
        s.serialize_field("name", &self.name)?;
        s.serialize_field("age", &self.age)?;
        s.serialize_field("phones", &self.phones)?;
        s.end()
    }
}

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Serialize for IpAddr

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for SocketAddr

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for bool

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for char

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for f32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for f64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for i8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for i16

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for i32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for i64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for i128

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for isize

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for str

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for u8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for u16

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for u32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for u64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for u128

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for ()

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for usize

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for CString

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for String

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for CStr

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for Ipv4Addr

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for Ipv6Addr

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for SocketAddrV4

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for SocketAddrV6

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicBool

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicI8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicI16

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicI32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicI64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicIsize

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicU8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicU16

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicU32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicU64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for AtomicUsize

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for Duration

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for OsStr

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for OsString

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for Path

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for PathBuf

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for SystemTime

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroI8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroI16

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroI32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroI64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroI128

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroIsize

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroU8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroU16

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroU32

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroU64

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroU128

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for NonZeroUsize

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<'a> Serialize for Arguments<'a>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<'a, T> Serialize for Cow<'a, T>
where T: ?Sized + Serialize + ToOwned,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<'a, T> Serialize for &'a T
where T: ?Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<'a, T> Serialize for &'a mut T
where T: ?Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<Idx> Serialize for Range<Idx>
where Idx: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<Idx> Serialize for RangeFrom<Idx>
where Idx: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<Idx> Serialize for RangeInclusive<Idx>
where Idx: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<Idx> Serialize for RangeTo<Idx>
where Idx: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<K, V> Serialize for BTreeMap<K, V>
where K: Serialize, V: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<K, V, H> Serialize for HashMap<K, V, H>
where K: Serialize, V: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0> Serialize for (T0,)
where T0: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1> Serialize for (T0, T1)
where T0: Serialize, T1: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2> Serialize for (T0, T1, T2)
where T0: Serialize, T1: Serialize, T2: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3> Serialize for (T0, T1, T2, T3)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5> Serialize for (T0, T1, T2, T3, T4, T5)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6> Serialize for (T0, T1, T2, T3, T4, T5, T6)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize, T11: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize, T11: Serialize, T12: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize, T11: Serialize, T12: Serialize, T13: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize, T11: Serialize, T12: Serialize, T13: Serialize, T14: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Serialize for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
where T0: Serialize, T1: Serialize, T2: Serialize, T3: Serialize, T4: Serialize, T5: Serialize, T6: Serialize, T7: Serialize, T8: Serialize, T9: Serialize, T10: Serialize, T11: Serialize, T12: Serialize, T13: Serialize, T14: Serialize, T15: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Bound<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Option<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 0]

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 1]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 2]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 3]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 4]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 5]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 6]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 7]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 8]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 9]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 10]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 11]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 12]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 13]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 14]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 15]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 16]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 17]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 18]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 19]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 20]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 21]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 22]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 23]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 24]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 25]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 26]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 27]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 28]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 29]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 30]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 31]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T; 32]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for [T]
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Box<T>
where T: ?Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for BinaryHeap<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for BTreeSet<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for LinkedList<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for VecDeque<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Vec<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Cell<T>
where T: Serialize + Copy,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for RefCell<T>
where T: ?Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Reverse<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for PhantomData<T>
where T: ?Sized,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Saturating<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Wrapping<T>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for Mutex<T>
where T: ?Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T> Serialize for RwLock<T>
where T: ?Sized + Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T, E> Serialize for Result<T, E>
where T: Serialize, E: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl<T, H> Serialize for HashSet<T, H>
where T: Serialize,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Implementors§

impl Serialize for Type

impl Serialize for Binary

impl Serialize for Block

impl Serialize for Bool

impl Serialize for Buffer

impl Serialize for Date

impl Serialize for Field

impl Serialize for Footer

impl Serialize for Int

impl Serialize for List

impl Serialize for Map

impl Serialize for Null

impl Serialize for Schema

impl Serialize for Struct

impl Serialize for Tensor

impl Serialize for Time

impl Serialize for Union

impl Serialize for Utf8

impl<Coords, BType, R, NPTS, StorageMultiple> Serialize for RayBundle<Coords, BType, R, NPTS, StorageMultiple>
where Coords: CoordinateSystem, BType: Bundle<R> + Serialize, R: RealField + Serialize, NPTS: Dim + Serialize, StorageMultiple: Storage<R, NPTS, U3> + Serialize,

impl<R, I> Serialize for Camera<R, I>

impl Serialize for Month

impl<Tz: TimeZone> Serialize for DateTime<Tz>

impl Serialize for CamArg

impl<'a> Serialize for Cookie<'a>

impl<'erased> Serialize for dyn Serialize + 'erased

impl<'erased> Serialize for dyn Serialize + Send + 'erased

impl<'erased> Serialize for dyn Serialize + Send + Sync + 'erased

impl<'erased> Serialize for dyn Serialize + Sync + 'erased

impl<Frac: LeEqU128> Serialize for FixedI128<Frac>

impl<Frac: LeEqU128> Serialize for FixedU128<Frac>

impl<Frac: LeEqU128> Serialize for Unwrapped<FixedI128<Frac>>

impl<Frac: LeEqU128> Serialize for Unwrapped<FixedU128<Frac>>

impl<Frac: LeEqU128> Serialize for Wrapping<FixedI128<Frac>>

impl<Frac: LeEqU128> Serialize for Wrapping<FixedU128<Frac>>

impl<Frac: LeEqU16> Serialize for FixedI16<Frac>

impl<Frac: LeEqU16> Serialize for FixedU16<Frac>

impl<Frac: LeEqU16> Serialize for Unwrapped<FixedI16<Frac>>

impl<Frac: LeEqU16> Serialize for Unwrapped<FixedU16<Frac>>

impl<Frac: LeEqU16> Serialize for Wrapping<FixedI16<Frac>>

impl<Frac: LeEqU16> Serialize for Wrapping<FixedU16<Frac>>

impl<Frac: LeEqU32> Serialize for FixedI32<Frac>

impl<Frac: LeEqU32> Serialize for FixedU32<Frac>

impl<Frac: LeEqU32> Serialize for Unwrapped<FixedI32<Frac>>

impl<Frac: LeEqU32> Serialize for Unwrapped<FixedU32<Frac>>

impl<Frac: LeEqU32> Serialize for Wrapping<FixedI32<Frac>>

impl<Frac: LeEqU32> Serialize for Wrapping<FixedU32<Frac>>

impl<Frac: LeEqU64> Serialize for FixedI64<Frac>

impl<Frac: LeEqU64> Serialize for FixedU64<Frac>

impl<Frac: LeEqU64> Serialize for Unwrapped<FixedI64<Frac>>

impl<Frac: LeEqU64> Serialize for Unwrapped<FixedU64<Frac>>

impl<Frac: LeEqU64> Serialize for Wrapping<FixedI64<Frac>>

impl<Frac: LeEqU64> Serialize for Wrapping<FixedU64<Frac>>

impl<Frac: LeEqU8> Serialize for FixedI8<Frac>

impl<Frac: LeEqU8> Serialize for FixedU8<Frac>

impl<Frac: LeEqU8> Serialize for Unwrapped<FixedI8<Frac>>

impl<Frac: LeEqU8> Serialize for Unwrapped<FixedU8<Frac>>

impl<Frac: LeEqU8> Serialize for Wrapping<FixedI8<Frac>>

impl<Frac: LeEqU8> Serialize for Wrapping<FixedU8<Frac>>

impl Serialize for CamNum

impl<T> Serialize for PerCam<T>
where T: Serialize,

impl Serialize for Shape

impl Serialize for Point

impl Serialize for FourCC

impl Serialize for Dyn

impl<T> Serialize for IJKW<T>
where T: Serialize + Scalar,

impl<T> Serialize for M2x2<T>
where T: Serialize + Scalar,

impl<T> Serialize for M2x3<T>
where T: Serialize + Scalar,

impl<T> Serialize for M2x4<T>
where T: Serialize + Scalar,

impl<T> Serialize for M2x5<T>
where T: Serialize + Scalar,

impl<T> Serialize for M2x6<T>
where T: Serialize + Scalar,

impl<T> Serialize for M3x2<T>
where T: Serialize + Scalar,

impl<T> Serialize for M3x3<T>
where T: Serialize + Scalar,

impl<T> Serialize for M3x4<T>
where T: Serialize + Scalar,

impl<T> Serialize for M3x5<T>
where T: Serialize + Scalar,

impl<T> Serialize for M3x6<T>
where T: Serialize + Scalar,

impl<T> Serialize for M4x2<T>
where T: Serialize + Scalar,

impl<T> Serialize for M4x3<T>
where T: Serialize + Scalar,

impl<T> Serialize for M4x4<T>
where T: Serialize + Scalar,

impl<T> Serialize for M4x5<T>
where T: Serialize + Scalar,

impl<T> Serialize for M4x6<T>
where T: Serialize + Scalar,

impl<T> Serialize for M5x2<T>
where T: Serialize + Scalar,

impl<T> Serialize for M5x3<T>
where T: Serialize + Scalar,

impl<T> Serialize for M5x4<T>
where T: Serialize + Scalar,

impl<T> Serialize for M5x5<T>
where T: Serialize + Scalar,

impl<T> Serialize for M5x6<T>
where T: Serialize + Scalar,

impl<T> Serialize for M6x2<T>
where T: Serialize + Scalar,

impl<T> Serialize for M6x3<T>
where T: Serialize + Scalar,

impl<T> Serialize for M6x4<T>
where T: Serialize + Scalar,

impl<T> Serialize for M6x5<T>
where T: Serialize + Scalar,

impl<T> Serialize for M6x6<T>
where T: Serialize + Scalar,

impl<T> Serialize for X<T>
where T: Serialize + Scalar,

impl<T> Serialize for XY<T>
where T: Serialize + Scalar,

impl<T> Serialize for XYZ<T>
where T: Serialize + Scalar,

impl<T> Serialize for XYZW<T>
where T: Serialize + Scalar,

impl<T> Serialize for XYZWA<T>
where T: Serialize + Scalar,

impl<T> Serialize for XYZWAB<T>
where T: Serialize + Scalar,

impl<T, R, C> Serialize for VecStorage<T, R, C>
where T: Serialize, R: Serialize + Dim, C: Serialize + Dim,

impl<T, R, C, S> Serialize for Matrix<T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: Serialize,

impl<T, R, const D: usize> Serialize for Isometry<T, R, D>

impl<T, R, const D: usize> Serialize for Similarity<T, R, D>

impl<T, const R: usize, const C: usize> Serialize for ArrayStorage<T, R, C>
where T: Scalar + Serialize,

impl<T: Scalar> Serialize for Quaternion<T>
where Owned<T, U4>: Serialize,

impl<T: Scalar, const D: usize> Serialize for Rotation<T, D>
where Owned<T, Const<D>, Const<D>>: Serialize,

impl<T: Scalar, const D: usize> Serialize for Scale<T, D>
where Owned<T, Const<D>>: Serialize,

impl<T: Scalar, const D: usize> Serialize for Translation<T, D>
where Owned<T, Const<D>>: Serialize,

impl<T: ComplexField, D: Dim> Serialize for Schur<T, D>
where DefaultAllocator: Allocator<T, D, D>, OMatrix<T, D, D>: Serialize,

impl<T: ComplexField, D: DimSub<U1>> Serialize for Hessenberg<T, D>
where DefaultAllocator: Allocator<T, D, D> + Allocator<T, DimDiff<D, U1>>, OMatrix<T, D, D>: Serialize, OVector<T, DimDiff<D, U1>>: Serialize,

impl<T: ComplexField, R: DimMin<C>, C: Dim> Serialize for Bidiagonal<T, R, C>

impl<T: ComplexField, R: DimMin<C>, C: Dim> Serialize for LU<T, R, C>

impl<T: ComplexField, R: DimMin<C>, C: Dim> Serialize for QR<T, R, C>
where DefaultAllocator: Allocator<T, R, C> + Allocator<T, DimMinimum<R, C>>, OMatrix<T, R, C>: Serialize, OVector<T, DimMinimum<R, C>>: Serialize,

impl<T: ComplexField, R: DimMin<C>, C: Dim> Serialize for SVD<T, R, C>

impl<T: RealField, D: Dim> Serialize for UDU<T, D>
where DefaultAllocator: Allocator<T, D> + Allocator<T, D, D>, OVector<T, D>: Serialize, OMatrix<T, D, D>: Serialize,

impl<T: SimdComplexField, D: Dim> Serialize for Cholesky<T, D>
where DefaultAllocator: Allocator<T, D, D> + Allocator<T, D>, OMatrix<T, D, D>: Serialize,

impl<T: Serialize> Serialize for Unit<T>

impl<const D: usize> Serialize for Const<D>

impl<T> Serialize for Complex<T>
where T: Serialize,

impl<T> Serialize for Ratio<T>

impl<R> Serialize for Distortion<R>
where R: Serialize + RealField,

impl<R> Serialize for RosCameraInfo<R>
where R: Serialize + RealField,

impl<R> Serialize for RosMatrix<R>
where R: Serialize + RealField,

impl<T: Float + Serialize> Serialize for NotNan<T>

impl Serialize for LogMsg

impl Serialize for RowId

impl Serialize for Time

impl Serialize for Tuid

impl Serialize for Bytes

impl<const N: usize> Serialize for ByteArray<N>

impl Serialize for Value

impl<T: Serialize> Serialize for Tagged<T>

impl Serialize for Value

impl Serialize for Number

impl Serialize for Value

impl Serialize for Number

impl Serialize for Value

impl<T: Serialize> Serialize for Spanned<T>

impl Serialize for Braced

impl Serialize for Simple

impl Serialize for Urn

impl Serialize for Uuid