Trait binary_data_schema::Encoder[][src]

pub trait Encoder {
    fn encode<W>(&self, target: &mut W, value: &Value) -> Result<usize>
    where
        W: Write + WriteBytesExt
; }

A schema to serialize a value to bytes.

Required methods

fn encode<W>(&self, target: &mut W, value: &Value) -> Result<usize> where
    W: Write + WriteBytesExt
[src]

Write a Json value according to the schema.

Loading content...

Implementors

impl Encoder for DataSchema[src]

impl Encoder for IntegerSchema[src]

impl Encoder for NumberSchema[src]

impl Encoder for PropertySchema[src]

impl Encoder for ArraySchema[src]

impl Encoder for Bitfield[src]

impl Encoder for BooleanSchema[src]

impl Encoder for Integer[src]

impl Encoder for JoinedBitfield[src]

impl Encoder for ObjectSchema[src]

impl Encoder for StringSchema[src]

Loading content...