Struct edge::value::Serializer []

pub struct Serializer {
    // some fields omitted
}

Create a serde::Serializer that serializes a Serializee into a Value.

Methods

impl Serializer

fn new() -> Serializer

Construct a new Serializer.

fn unwrap(self) -> Value

Unwrap the Serializer and return the Value.

Trait Implementations

impl Serializer for Serializer

type Error = Error

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

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

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

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

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

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

fn serialize_none(&mut self) -> Result<(), Error>

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

fn serialize_unit(&mut self) -> Result<(), Error>

fn serialize_unit_variant(&mut self, _name: &str, _variant_index: usize, variant: &str) -> Result<(), Error>

fn serialize_newtype_variant<T>(&mut self, _name: &str, _variant_index: usize, variant: &str, value: T) -> Result<(), Error> where T: Serialize

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

fn serialize_tuple_variant<V>(&mut self, _name: &str, _variant_index: usize, variant: &str, visitor: V) -> Result<(), Error> where V: SeqVisitor

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

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

fn serialize_struct_variant<V>(&mut self, _name: &str, _variant_index: usize, variant: &str, visitor: V) -> Result<(), Error> where V: MapVisitor

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