Trait Serialize

Source
pub trait Serialize {
    // Required method
    fn begin(&self) -> Fragment<'_>;
}
Expand description

Trait for data structures that can be serialized to a JSON string.

Refer to the module documentation for examples.

Required Methods§

Source

fn begin(&self) -> Fragment<'_>

Implementations on Foreign Types§

Source§

impl Serialize for bool

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for f32

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for f64

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for i8

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for i16

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for i32

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for i64

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for isize

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for str

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for u8

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for u16

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for u32

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for u64

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for ()

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for usize

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl Serialize for String

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl<A, B> Serialize for (A, B)
where A: Serialize, B: Serialize,

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl<K, V, H> Serialize for HashMap<K, V, H>
where K: Hash + Eq + ToString, V: Serialize, H: BuildHasher,

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

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

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl<T, const N: usize> Serialize for [T; N]
where T: Serialize,

Source§

fn begin(&self) -> Fragment<'_>

Implementors§