Struct transmog_json::Json
source · pub struct Json { /* private fields */ }
Expand description
Json implementor of [Format
].
Implementations§
Trait Implementations§
source§impl<'a, T> BorrowedDeserializer<'a, T> for Jsonwhere
T: Serialize + Deserialize<'a>,
impl<'a, T> BorrowedDeserializer<'a, T> for Jsonwhere T: Serialize + Deserialize<'a>,
source§fn deserialize_borrowed(&self, data: &'a [u8]) -> Result<T, Self::Error>
fn deserialize_borrowed(&self, data: &'a [u8]) -> Result<T, Self::Error>
Deserialize
T
from data
, borrowing when possible.source§impl<'a, T> Format<'a, T> for Jsonwhere
T: Serialize,
impl<'a, T> Format<'a, T> for Jsonwhere T: Serialize,
source§impl<T> OwnedDeserializer<T> for Jsonwhere
T: Serialize + DeserializeOwned,
impl<T> OwnedDeserializer<T> for Jsonwhere T: Serialize + DeserializeOwned,
source§fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error>
fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error>
Deserialize
T
from data
.source§fn deserialize_from<R: Read>(&self, reader: R) -> Result<T, Self::Error>
fn deserialize_from<R: Read>(&self, reader: R) -> Result<T, Self::Error>
Deserialize
T
from reader
.Auto Trait Implementations§
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnwindSafe for Json
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