pub struct Json;Implementations
sourceimpl Json
impl Json
pub fn str_to_obj<'a, T: Deserialize<'a>>(&self, str: &'a str) -> Result<T>
pub fn str_to_json<'a>(&self, str: &'a str) -> Result<Value>
pub fn json_to_obj<T: DeserializeOwned>(&self, value: Value) -> Result<T>
pub fn obj_to_string<T: ?Sized + Serialize>(&self, obj: &T) -> Result<String>
pub fn obj_to_json<T: Serialize>(&self, obj: &T) -> Result<Value>
pub fn json_to_string(&self, value: Value) -> Result<String>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more