pub struct JsonUtils;
Expand description
JSON工具
Implementations§
Source§impl JsonUtils
impl JsonUtils
Sourcepub fn from_str<T: DeserializeOwned>(s: &str) -> Result<T>
pub fn from_str<T: DeserializeOwned>(s: &str) -> Result<T>
JSON字符串转对象
Sourcepub fn from_value<T: DeserializeOwned>(value: Value) -> Result<T>
pub fn from_value<T: DeserializeOwned>(value: Value) -> Result<T>
JSON值转对象
Auto Trait Implementations§
impl Freeze for JsonUtils
impl RefUnwindSafe for JsonUtils
impl Send for JsonUtils
impl Sync for JsonUtils
impl Unpin for JsonUtils
impl UnwindSafe for JsonUtils
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