pub struct JsonSerializer;Expand description
JSON serializer implementation
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Serializer for JsonSerializer
impl Serializer for JsonSerializer
Source§fn content_type(&self) -> ContentType
fn content_type(&self) -> ContentType
Returns the content type for this serializer
Source§fn content_encoding(&self) -> ContentEncoding
fn content_encoding(&self) -> ContentEncoding
Returns the content encoding for this serializer
Source§fn serialize<T: Serialize>(&self, value: &T) -> SerializerResult<Vec<u8>>
fn serialize<T: Serialize>(&self, value: &T) -> SerializerResult<Vec<u8>>
Serialize a value to bytes
Source§fn deserialize<T: DeserializeOwned>(&self, bytes: &[u8]) -> SerializerResult<T>
fn deserialize<T: DeserializeOwned>(&self, bytes: &[u8]) -> SerializerResult<T>
Deserialize bytes to a value
impl Copy for JsonSerializer
Auto Trait Implementations§
impl Freeze for JsonSerializer
impl RefUnwindSafe for JsonSerializer
impl Send for JsonSerializer
impl Sync for JsonSerializer
impl Unpin 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