Trait kserde::Serializer[][src]

pub trait Serializer: for<'a> AsObjectSerializer<'a> + for<'a> AsArraySerializer<'a> + Sized {
    type Result;
    fn new() -> Self;
fn string(&mut self, s: &str);
fn bool(&mut self, b: bool);
fn i64(&mut self, i: i64);
fn f64(&mut self, n: f64);
fn null(&mut self);
fn done(self) -> Self::Result; fn serialize<V: Serialize>(&mut self, value: &V) { ... } }

Associated Types

Loading content...

Required methods

fn new() -> Self[src]

fn string(&mut self, s: &str)[src]

fn bool(&mut self, b: bool)[src]

fn i64(&mut self, i: i64)[src]

fn f64(&mut self, n: f64)[src]

fn null(&mut self)[src]

fn done(self) -> Self::Result[src]

Loading content...

Provided methods

fn serialize<V: Serialize>(&mut self, value: &V)[src]

Serialize a value that implements Serialize.

Loading content...

Implementors

impl Serializer for JSONSerializer[src]

type Result = String

Loading content...