pub struct Json { /* private fields */ }Expand description
Basic representation of any valid Json value, wrapping a
serde_json::Value. For use if you are implementing crate::query::Query
from scratch. To parse this value, you can utilise the Serialize /
Deserialize traits, the from_json function to convert to a concrete
type, or enable the serde_json feature to expose the internals via feature
gated function Json::into_inner.
§Note
This struct does not implement Deserializer, as implementation is more complex than this thin wrapper.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Json
impl<'de> Deserialize<'de> for Json
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Json
Auto Trait Implementations§
impl Freeze for Json
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)