pub trait Serialize {
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::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
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::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()
}
}
Implementations on Foreign Types
sourceimpl Serialize for NonZeroI128
impl Serialize for NonZeroI128
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Duration
impl Serialize for Duration
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for u16
impl Serialize for u16
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for i64
impl Serialize for i64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Reverse<T> where
T: Serialize,
impl<T> Serialize for Reverse<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroU64
impl Serialize for NonZeroU64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 22] where
T: Serialize,
impl<T> Serialize for [T; 22] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for OsStr
impl Serialize for OsStr
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T0, T1> Serialize for (T0, T1) where
T0: Serialize,
T1: Serialize,
impl<T0, T1> Serialize for (T0, T1) where
T0: Serialize,
T1: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroU128
impl Serialize for NonZeroU128
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T0, T1, T2, T3> Serialize for (T0, T1, T2, T3) where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
impl<T0, T1, T2, T3> Serialize for (T0, T1, T2, T3) where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicU32
impl Serialize for AtomicU32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 23] where
T: Serialize,
impl<T> Serialize for [T; 23] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for isize
impl Serialize for isize
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for u128
impl Serialize for u128
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for RefCell<T> where
T: Serialize,
impl<T> Serialize for RefCell<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 8] where
T: Serialize,
impl<T> Serialize for [T; 8] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicI8
impl Serialize for AtomicI8
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroI64
impl Serialize for NonZeroI64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicUsize
impl Serialize for AtomicUsize
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Mutex<T> where
T: Serialize,
impl<T> Serialize for Mutex<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for SocketAddrV4
impl Serialize for SocketAddrV4
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 19] where
T: Serialize,
impl<T> Serialize for [T; 19] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicIsize
impl Serialize for AtomicIsize
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 27] where
T: Serialize,
impl<T> Serialize for [T; 27] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Path
impl Serialize for Path
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for bool
impl Serialize for bool
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for SystemTime
impl Serialize for SystemTime
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<K, V, H> Serialize for HashMap<K, V, H> where
K: Serialize + Eq + Hash,
V: Serialize,
H: BuildHasher,
impl<K, V, H> Serialize for HashMap<K, V, H> where
K: Serialize + Eq + Hash,
V: Serialize,
H: BuildHasher,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicI16
impl Serialize for AtomicI16
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for f64
impl Serialize for f64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for LinkedList<T> where
T: Serialize,
impl<T> Serialize for LinkedList<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for BinaryHeap<T> where
T: Serialize + Ord,
impl<T> Serialize for BinaryHeap<T> where
T: Serialize + Ord,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for IpAddr
impl Serialize for IpAddr
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 2] where
T: Serialize,
impl<T> Serialize for [T; 2] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<'a, T> Serialize for &'a mut T where
T: Serialize + ?Sized,
impl<'a, T> Serialize for &'a mut T where
T: Serialize + ?Sized,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<'a, T> Serialize for &'a T where
T: Serialize + ?Sized,
impl<'a, T> Serialize for &'a T where
T: Serialize + ?Sized,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for str
impl Serialize for str
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 26] where
T: Serialize,
impl<T> Serialize for [T; 26] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 11] where
T: Serialize,
impl<T> Serialize for [T; 11] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 13] where
T: Serialize,
impl<T> Serialize for [T; 13] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T0, T1, T2> Serialize for (T0, T1, T2) where
T0: Serialize,
T1: Serialize,
T2: Serialize,
impl<T0, T1, T2> Serialize for (T0, T1, T2) where
T0: Serialize,
T1: Serialize,
T2: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for BTreeSet<T, Global> where
T: Serialize + Ord,
impl<T> Serialize for BTreeSet<T, Global> where
T: Serialize + Ord,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Bound<T> where
T: Serialize,
impl<T> Serialize for Bound<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 7] where
T: Serialize,
impl<T> Serialize for [T; 7] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 4] where
T: Serialize,
impl<T> Serialize for [T; 4] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for RwLock<T> where
T: Serialize,
impl<T> Serialize for RwLock<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for PhantomData<T> where
T: ?Sized,
impl<T> Serialize for PhantomData<T> where
T: ?Sized,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicU8
impl Serialize for AtomicU8
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for f32
impl Serialize for f32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T, H> Serialize for HashSet<T, H> where
T: Serialize + Eq + Hash,
H: BuildHasher,
impl<T, H> Serialize for HashSet<T, H> where
T: Serialize + Eq + Hash,
H: BuildHasher,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for char
impl Serialize for char
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 0]
impl<T> Serialize for [T; 0]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicI32
impl Serialize for AtomicI32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T0> Serialize for (T0,) where
T0: Serialize,
impl<T0> Serialize for (T0,) where
T0: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for SocketAddr
impl Serialize for SocketAddr
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroU32
impl Serialize for NonZeroU32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicI64
impl Serialize for AtomicI64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 24] where
T: Serialize,
impl<T> Serialize for [T; 24] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for i16
impl Serialize for i16
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroI32
impl Serialize for NonZeroI32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 31] where
T: Serialize,
impl<T> Serialize for [T; 31] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for u32
impl Serialize for u32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 20] where
T: Serialize,
impl<T> Serialize for [T; 20] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroU16
impl Serialize for NonZeroU16
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 3] where
T: Serialize,
impl<T> Serialize for [T; 3] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 17] where
T: Serialize,
impl<T> Serialize for [T; 17] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for OsString
impl Serialize for OsString
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<K, V> Serialize for BTreeMap<K, V, Global> where
K: Serialize + Ord,
V: Serialize,
impl<K, V> Serialize for BTreeMap<K, V, Global> where
K: Serialize + Ord,
V: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Vec<T, Global> where
T: Serialize,
impl<T> Serialize for Vec<T, Global> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Box<T, Global> where
T: Serialize + ?Sized,
impl<T> Serialize for Box<T, Global> where
T: Serialize + ?Sized,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T] where
T: Serialize,
impl<T> Serialize for [T] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for i128
impl Serialize for i128
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 16] where
T: Serialize,
impl<T> Serialize for [T; 16] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 32] where
T: Serialize,
impl<T> Serialize for [T; 32] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for i32
impl Serialize for i32
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for CString
impl Serialize for CString
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroIsize
impl Serialize for NonZeroIsize
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 12] where
T: Serialize,
impl<T> Serialize for [T; 12] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroI8
impl Serialize for NonZeroI8
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 21] where
T: Serialize,
impl<T> Serialize for [T; 21] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Weak<T> where
T: Serialize + ?Sized,
impl<T> Serialize for Weak<T> where
T: Serialize + ?Sized,
This impl requires the "rc"
Cargo feature of Serde.
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Ipv4Addr
impl Serialize for Ipv4Addr
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 6] where
T: Serialize,
impl<T> Serialize for [T; 6] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for SocketAddrV6
impl Serialize for SocketAddrV6
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 18] where
T: Serialize,
impl<T> Serialize for [T; 18] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<'a, T> Serialize for Cow<'a, T> where
T: Serialize + ToOwned + ?Sized,
impl<'a, T> Serialize for Cow<'a, T> where
T: Serialize + ToOwned + ?Sized,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4) where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
impl<T0, T1, T2, T3, T4> Serialize for (T0, T1, T2, T3, T4) where
T0: Serialize,
T1: Serialize,
T2: Serialize,
T3: Serialize,
T4: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T, E> Serialize for Result<T, E> where
T: Serialize,
E: Serialize,
impl<T, E> Serialize for Result<T, E> where
T: Serialize,
E: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 15] where
T: Serialize,
impl<T> Serialize for [T; 15] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for VecDeque<T, Global> where
T: Serialize,
impl<T> Serialize for VecDeque<T, Global> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroUsize
impl Serialize for NonZeroUsize
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 5] where
T: Serialize,
impl<T> Serialize for [T; 5] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Weak<T> where
T: Serialize + ?Sized,
impl<T> Serialize for Weak<T> where
T: Serialize + ?Sized,
This impl requires the "rc"
Cargo feature of Serde.
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Option<T> where
T: Serialize,
impl<T> Serialize for Option<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Arc<T> where
T: Serialize + ?Sized,
impl<T> Serialize for Arc<T> where
T: Serialize + ?Sized,
This impl requires the "rc"
Cargo feature of Serde.
Serializing a data structure containing Arc
will serialize a copy of
the contents of the Arc
each time the Arc
is referenced within the
data structure. Serialization will not attempt to deduplicate these
repeated data.
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for u8
impl Serialize for u8
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 28] where
T: Serialize,
impl<T> Serialize for [T; 28] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicBool
impl Serialize for AtomicBool
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Rc<T> where
T: Serialize + ?Sized,
impl<T> Serialize for Rc<T> where
T: Serialize + ?Sized,
This impl requires the "rc"
Cargo feature of Serde.
Serializing a data structure containing Rc
will serialize a copy of
the contents of the Rc
each time the Rc
is referenced within the
data structure. Serialization will not attempt to deduplicate these
repeated data.
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for CStr
impl Serialize for CStr
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 1] where
T: Serialize,
impl<T> Serialize for [T; 1] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 29] where
T: Serialize,
impl<T> Serialize for [T; 29] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroI16
impl Serialize for NonZeroI16
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for u64
impl Serialize for u64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 9] where
T: Serialize,
impl<T> Serialize for [T; 9] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicU16
impl Serialize for AtomicU16
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<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,
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,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 25] where
T: Serialize,
impl<T> Serialize for [T; 25] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<Idx> Serialize for Range<Idx> where
Idx: Serialize,
impl<Idx> Serialize for Range<Idx> where
Idx: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Wrapping<T> where
T: Serialize,
impl<T> Serialize for Wrapping<T> where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for i8
impl Serialize for i8
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for PathBuf
impl Serialize for PathBuf
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NonZeroU8
impl Serialize for NonZeroU8
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Ipv6Addr
impl Serialize for Ipv6Addr
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 30] where
T: Serialize,
impl<T> Serialize for [T; 30] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<Idx> Serialize for RangeInclusive<Idx> where
Idx: Serialize,
impl<Idx> Serialize for RangeInclusive<Idx> where
Idx: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for ()
impl Serialize for ()
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for usize
impl Serialize for usize
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for AtomicU64
impl Serialize for AtomicU64
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for Cell<T> where
T: Serialize + Copy,
impl<T> Serialize for Cell<T> where
T: Serialize + Copy,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for String
impl Serialize for String
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 10] where
T: Serialize,
impl<T> Serialize for [T; 10] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<'a> Serialize for Arguments<'a>
impl<'a> Serialize for Arguments<'a>
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<T> Serialize for [T; 14] where
T: Serialize,
impl<T> Serialize for [T; 14] where
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Number
impl Serialize for Number
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Map<String, Value>
impl Serialize for Map<String, Value>
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Value
impl Serialize for Value
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<K, V, S> Serialize for IndexMap<K, V, S> where
K: Serialize + Hash + Eq,
V: Serialize,
S: BuildHasher,
impl<K, V, S> Serialize for IndexMap<K, V, S> where
K: Serialize + Hash + Eq,
V: Serialize,
S: BuildHasher,
Requires crate feature "serde"
or "serde-1"
fn serialize<T>(
&self,
serializer: T
) -> Result<<T as Serializer>::Ok, <T as Serializer>::Error> where
T: Serializer,
sourceimpl<T, S> Serialize for IndexSet<T, S> where
T: Serialize + Hash + Eq,
S: BuildHasher,
impl<T, S> Serialize for IndexSet<T, S> where
T: Serialize + Hash + Eq,
S: BuildHasher,
Requires crate feature "serde"
or "serde-1"
fn serialize<Se>(
&self,
serializer: Se
) -> Result<<Se as Serializer>::Ok, <Se as Serializer>::Error> where
Se: Serializer,
impl<'a> Serialize for RawRef<'a>
impl<'a> Serialize for RawRef<'a>
fn serialize<S>(
&self,
se: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl Serialize for Raw
impl Serialize for Raw
fn serialize<S>(
&self,
se: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Bytes
impl Serialize for Bytes
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for ByteBuf
impl Serialize for ByteBuf
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<'de, D> Serialize for Transcoder<D> where
D: Deserializer<'de>,
impl<'de, D> Serialize for Transcoder<D> where
D: Deserializer<'de>,
fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl Serialize for DhtLocation
impl Serialize for DhtLocation
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> Serialize for DhtArcRange<T> where
T: Serialize,
impl<T> Serialize for DhtArcRange<T> where
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for DhtArc
impl Serialize for DhtArc
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl<B> Serialize for BitVec<B> where
B: Serialize,
impl<B> Serialize for BitVec<B> where
B: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for NaiveTime
impl Serialize for NaiveTime
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NaiveDateTime
impl Serialize for NaiveDateTime
Serialize a NaiveDateTime
as an RFC 3339 string
See the serde
module for alternate
serialization formats.
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Month
impl Serialize for Month
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Weekday
impl Serialize for Weekday
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for NaiveDate
impl Serialize for NaiveDate
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<Tz> Serialize for DateTime<Tz> where
Tz: TimeZone,
impl<Tz> Serialize for DateTime<Tz> where
Tz: TimeZone,
Serialize into a rfc3339 time string
See the serde
module for alternate
serializations.
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl Serialize for WasmErrorInner
impl Serialize for WasmErrorInner
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for WasmError
impl Serialize for WasmError
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for InstructionAddressMap
impl Serialize for InstructionAddressMap
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for SectionBody
impl Serialize for SectionBody
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for CompiledFunction
impl Serialize for CompiledFunction
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for CompiledFunctionFrameInfo
impl Serialize for CompiledFunctionFrameInfo
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for CustomSection
impl Serialize for CustomSection
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for CompiledFunctionUnwindInfo
impl Serialize for CompiledFunctionUnwindInfo
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for RelocationTarget
impl Serialize for RelocationTarget
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Relocation
impl Serialize for Relocation
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for FunctionAddressMap
impl Serialize for FunctionAddressMap
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Compilation
impl Serialize for Compilation
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for JumpTable
impl Serialize for JumpTable
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for CustomSectionProtection
impl Serialize for CustomSectionProtection
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for RelocationKind
impl Serialize for RelocationKind
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for SourceLoc
impl Serialize for SourceLoc
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for SectionIndex
impl Serialize for SectionIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for FunctionBody
impl Serialize for FunctionBody
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for TrapInformation
impl Serialize for TrapInformation
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Dwarf
impl Serialize for Dwarf
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for CompileModuleInfo
impl Serialize for CompileModuleInfo
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for LocalGlobalIndex
impl Serialize for LocalGlobalIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for V128
impl Serialize for V128
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for ExternType
impl Serialize for ExternType
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for LocalTableIndex
impl Serialize for LocalTableIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for TableType
impl Serialize for TableType
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Mutability
impl Serialize for Mutability
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<K, V> Serialize for PrimaryMap<K, V> where
K: EntityRef,
V: Serialize,
impl<K, V> Serialize for PrimaryMap<K, V> where
K: EntityRef,
V: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for ElemIndex
impl Serialize for ElemIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for FunctionIndex
impl Serialize for FunctionIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Pages
impl Serialize for Pages
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for GlobalIndex
impl Serialize for GlobalIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for LocalFunctionIndex
impl Serialize for LocalFunctionIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Features
impl Serialize for Features
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<'data> Serialize for DataInitializer<'data>
impl<'data> Serialize for DataInitializer<'data>
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Bytes
impl Serialize for Bytes
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for ExportIndex
impl Serialize for ExportIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for Type
impl Serialize for Type
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> Serialize for PackedOption<T> where
T: ReservedValue + Serialize,
impl<T> Serialize for PackedOption<T> where
T: ReservedValue + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for TableInitializer
impl Serialize for TableInitializer
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for DataInitializerLocation
impl Serialize for DataInitializerLocation
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> Serialize for ExportType<T> where
T: Serialize,
impl<T> Serialize for ExportType<T> where
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for OwnedDataInitializer
impl Serialize for OwnedDataInitializer
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for GlobalType
impl Serialize for GlobalType
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<K, V> Serialize for SecondaryMap<K, V> where
K: EntityRef,
V: Clone + PartialEq<V> + Serialize,
impl<K, V> Serialize for SecondaryMap<K, V> where
K: EntityRef,
V: Clone + PartialEq<V> + Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl Serialize for CustomSectionIndex
impl Serialize for CustomSectionIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for DataIndex
impl Serialize for DataIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for SignatureIndex
impl Serialize for SignatureIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for ModuleInfo
impl Serialize for ModuleInfo
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for MemoryIndex
impl Serialize for MemoryIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> Serialize for ImportType<T> where
T: Serialize,
impl<T> Serialize for ImportType<T> where
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for GlobalInit
impl Serialize for GlobalInit
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for ImportIndex
impl Serialize for ImportIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for TableIndex
impl Serialize for TableIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for LocalMemoryIndex
impl Serialize for LocalMemoryIndex
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for MemoryType
impl Serialize for MemoryType
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for FunctionType
impl Serialize for FunctionType
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for TrapCode
impl Serialize for TrapCode
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for MemoryStyle
impl Serialize for MemoryStyle
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for LibCall
impl Serialize for LibCall
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Serialize for TableStyle
impl Serialize for TableStyle
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl<D> Serialize for RegionSetLtcs<D> where
D: RegionDataConstraints + Serialize,
impl<D> Serialize for RegionSetLtcs<D> where
D: RegionDataConstraints + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for RegionHash
impl Serialize for RegionHash
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for SpaceOffset
impl Serialize for SpaceOffset
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for TimeQuantum
impl Serialize for TimeQuantum
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl<S> Serialize for ArqSetImpl<S> where
S: ArqStart + Serialize,
impl<S> Serialize for ArqSetImpl<S> where
S: ArqStart + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for RegionData
impl Serialize for RegionData
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for RegionCoordSetLtcs
impl Serialize for RegionCoordSetLtcs
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl<S> Serialize for Arq<S> where
S: ArqStart + Serialize,
impl<S> Serialize for Arq<S> where
S: ArqStart + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for SpaceQuantum
impl Serialize for SpaceQuantum
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for RegionDataCompact
impl Serialize for RegionDataCompact
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for TimeOffset
impl Serialize for TimeOffset
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for TelescopingTimes
impl Serialize for TelescopingTimes
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for Mapping
impl Serialize for Mapping
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Value
impl Serialize for Value
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl Serialize for Number
impl Serialize for Number
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
sourceimpl<M> Serialize for Bundle<M> where
M: Manifest + Serialize,
impl<M> Serialize for Bundle<M> where
M: Manifest + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for Location
impl Serialize for Location
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
sourceimpl Serialize for Url
impl Serialize for Url
Serializes this URL into a serde
stream.
This implementation is only available if the serde
Cargo feature is enabled.