pub struct DeJson;Expand description
JSON deserialiser.
Implementations§
Source§impl DeJson
impl DeJson
Sourcepub fn de_bytes<'a, Output>(input: &'a [u8]) -> Result<Output, DeBinaryError>where
Output: Deserialize<'a> + 'a,
pub fn de_bytes<'a, Output>(input: &'a [u8]) -> Result<Output, DeBinaryError>where
Output: Deserialize<'a> + 'a,
Deserialises a byte slice into the target Output type using serde_json.
Trait Implementations§
Source§impl<'a, Output> Deserialiser<&'a [u8], Output> for DeJsonwhere
Output: Deserialize<'a> + 'a,
impl<'a, Output> Deserialiser<&'a [u8], Output> for DeJsonwhere
Output: Deserialize<'a> + 'a,
type Error = DeBinaryError
Source§impl<Output> Deserialiser<Bytes, Output> for DeJsonwhere
Output: for<'a> Deserialize<'a>,
impl<Output> Deserialiser<Bytes, Output> for DeJsonwhere
Output: for<'a> Deserialize<'a>,
type Error = DeBinaryError
Auto Trait Implementations§
impl Freeze for DeJson
impl RefUnwindSafe for DeJson
impl Send for DeJson
impl Sync for DeJson
impl Unpin for DeJson
impl UnsafeUnpin for DeJson
impl UnwindSafe for DeJson
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more