Struct serde::json::value::Serializer [] [src]

pub struct Serializer {
    // some fields omitted
}

Methods

impl Serializer

fn new() -> Serializer

fn unwrap(self) -> Value

Trait Implementations

impl Serializer for Serializer

type Error = ()

fn visit_bool(&mut self, value: bool) -> Result<(), ()>

fn visit_i64(&mut self, value: i64) -> Result<(), ()>

fn visit_u64(&mut self, value: u64) -> Result<(), ()>

fn visit_f64(&mut self, value: f64) -> Result<(), ()>

fn visit_char(&mut self, value: char) -> Result<(), ()>

fn visit_str(&mut self, value: &str) -> Result<(), ()>

fn visit_none(&mut self) -> Result<(), ()>

fn visit_some<V>(&mut self, value: V) -> Result<(), ()> where V: Serialize

fn visit_unit(&mut self) -> Result<(), ()>

fn visit_enum_unit(&mut self, _name: &str, variant: &str) -> Result<(), ()>

fn visit_seq<V>(&mut self, visitor: V) -> Result<(), ()> where V: SeqVisitor

fn visit_enum_seq<V>(&mut self, _name: &str, variant: &str, visitor: V) -> Result<(), ()> where V: SeqVisitor

fn visit_seq_elt<T>(&mut self, value: T) -> Result<(), ()> where T: Serialize

fn visit_map<V>(&mut self, visitor: V) -> Result<(), ()> where V: MapVisitor

fn visit_enum_map<V>(&mut self, _name: &str, variant: &str, visitor: V) -> Result<(), ()> where V: MapVisitor

fn visit_map_elt<K, V>(&mut self, key: K, value: V) -> Result<(), ()> where K: Serialize, V: Serialize

fn visit_isize(&mut self, v: isize) -> Result<(), Self::Error>

fn visit_i8(&mut self, v: i8) -> Result<(), Self::Error>

fn visit_i16(&mut self, v: i16) -> Result<(), Self::Error>

fn visit_i32(&mut self, v: i32) -> Result<(), Self::Error>

fn visit_usize(&mut self, v: usize) -> Result<(), Self::Error>

fn visit_u8(&mut self, v: u8) -> Result<(), Self::Error>

fn visit_u16(&mut self, v: u16) -> Result<(), Self::Error>

fn visit_u32(&mut self, v: u32) -> Result<(), Self::Error>

fn visit_f32(&mut self, v: f32) -> Result<(), Self::Error>

fn visit_bytes(&mut self, value: &[u8]) -> Result<(), Self::Error>

fn visit_named_unit(&mut self, _name: &str) -> Result<(), Self::Error>

fn visit_named_seq<V>(&mut self, _name: &'static str, visitor: V) -> Result<(), Self::Error> where V: SeqVisitor

fn visit_named_map<V>(&mut self, _name: &'static str, visitor: V) -> Result<(), Self::Error> where V: MapVisitor