pub struct JsonSerializer;Expand description
A JSON serializer built on serde_json.
Trait Implementations§
Source§impl Clone for JsonSerializer
impl Clone for JsonSerializer
Source§fn clone(&self) -> JsonSerializer
fn clone(&self) -> JsonSerializer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JsonSerializer
Source§impl Debug for JsonSerializer
impl Debug for JsonSerializer
Source§impl Default for JsonSerializer
impl Default for JsonSerializer
Source§fn default() -> JsonSerializer
fn default() -> JsonSerializer
Returns the “default value” for a type. Read more
Source§impl<V> DistributedSerializer<V> for JsonSerializerwhere
V: Serialize + DeserializeOwned,
impl<V> DistributedSerializer<V> for JsonSerializerwhere
V: Serialize + DeserializeOwned,
Source§fn serialize(&self, entry: &DistributedEntry<V>) -> Result<Vec<u8>>
fn serialize(&self, entry: &DistributedEntry<V>) -> Result<Vec<u8>>
Serializes an envelope to bytes. Read more
Source§fn deserialize(&self, bytes: &[u8]) -> Result<DistributedEntry<V>>
fn deserialize(&self, bytes: &[u8]) -> Result<DistributedEntry<V>>
Deserializes an envelope from bytes. Read more
Auto Trait Implementations§
impl Freeze for JsonSerializer
impl RefUnwindSafe for JsonSerializer
impl Send for JsonSerializer
impl Sync for JsonSerializer
impl Unpin for JsonSerializer
impl UnsafeUnpin for JsonSerializer
impl UnwindSafe for JsonSerializer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more