Trait tidb_query_datatype::codec::mysql::json::JsonEncoder[][src]

pub trait JsonEncoder: NumberEncoder {
    fn write_json(&mut self, data: JsonRef<'_>) -> Result<()> { ... }
fn write_json_obj_from_keys_values<'a>(
        &mut self,
        entries: Vec<(&[u8], JsonRef<'a>)>
    ) -> Result<()> { ... }
fn write_json_obj(&mut self, data: &BTreeMap<String, Json>) -> Result<()> { ... }
fn write_json_ref_array<'a>(&mut self, data: &[JsonRef<'a>]) -> Result<()> { ... }
fn write_json_array(&mut self, data: &[Json]) -> Result<()> { ... }
fn write_value_entry<'a>(
        &mut self,
        value_offset: &mut u32,
        v: &JsonRef<'a>
    ) -> Result<()> { ... }
fn write_json_literal(&mut self, data: u8) -> Result<()> { ... }
fn write_json_i64(&mut self, data: i64) -> Result<()> { ... }
fn write_json_u64(&mut self, data: u64) -> Result<()> { ... }
fn write_json_f64(&mut self, data: f64) -> Result<()> { ... }
fn write_json_str(&mut self, data: &str) -> Result<()> { ... } }

Provided methods

fn write_json(&mut self, data: JsonRef<'_>) -> Result<()>[src]

fn write_json_obj_from_keys_values<'a>(
    &mut self,
    entries: Vec<(&[u8], JsonRef<'a>)>
) -> Result<()>
[src]

fn write_json_obj(&mut self, data: &BTreeMap<String, Json>) -> Result<()>[src]

fn write_json_ref_array<'a>(&mut self, data: &[JsonRef<'a>]) -> Result<()>[src]

fn write_json_array(&mut self, data: &[Json]) -> Result<()>[src]

fn write_value_entry<'a>(
    &mut self,
    value_offset: &mut u32,
    v: &JsonRef<'a>
) -> Result<()>
[src]

fn write_json_literal(&mut self, data: u8) -> Result<()>[src]

fn write_json_i64(&mut self, data: i64) -> Result<()>[src]

fn write_json_u64(&mut self, data: u64) -> Result<()>[src]

fn write_json_f64(&mut self, data: f64) -> Result<()>[src]

fn write_json_str(&mut self, data: &str) -> Result<()>[src]

Loading content...

Implementors

impl<T: BufferWriter> JsonEncoder for T[src]

Loading content...