Trait fetsig::JSONSerialize

source ·
pub trait JSONSerialize
where Self: Serialize,
{ // Provided methods fn write_json<W: Write>(&self, writer: &mut W) -> Result<(), String> { ... } fn to_json(&self) -> Vec<u8> { ... } }

Provided Methods§

source

fn write_json<W: Write>(&self, writer: &mut W) -> Result<(), String>

source

fn to_json(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<E> JSONSerialize for E
where E: Serialize,