pub struct JsonStringDecoder;Expand description
Trait Implementations§
Source§impl Clone for JsonStringDecoder
impl Clone for JsonStringDecoder
Source§fn clone(&self) -> JsonStringDecoder
fn clone(&self) -> JsonStringDecoder
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 JsonStringDecoder
Source§impl Debug for JsonStringDecoder
impl Debug for JsonStringDecoder
Source§impl Default for JsonStringDecoder
impl Default for JsonStringDecoder
Source§fn default() -> JsonStringDecoder
fn default() -> JsonStringDecoder
Returns the “default value” for a type. Read more
Source§impl JsonPayloadDecoder<String> for JsonStringDecoder
impl JsonPayloadDecoder<String> for JsonStringDecoder
Source§fn decode_json_payload(&self, raw_json: &str) -> Result<String, Self::Error>
fn decode_json_payload(&self, raw_json: &str) -> Result<String, Self::Error>
Deserializes one complete JSON string into an owned String.
The returned value owns its UTF-8 buffer. On failure, the original
serde_json::Error is returned so the decoder registry can retain it
as the source of a stream-, index-, and key-aware storage error.
Source§type Error = Error
type Error = Error
Decoder-specific failure retained by
StorageError::DecodeField.Auto Trait Implementations§
impl Freeze for JsonStringDecoder
impl RefUnwindSafe for JsonStringDecoder
impl Send for JsonStringDecoder
impl Sync for JsonStringDecoder
impl Unpin for JsonStringDecoder
impl UnsafeUnpin for JsonStringDecoder
impl UnwindSafe for JsonStringDecoder
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