pub struct JsonRoot {
pub value: JsonValueNode,
}Expand description
The root node of a JSON AST.
Fields§
§value: JsonValueNodeThe top-level value of the JSON document.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonRoot
impl<'de> Deserialize<'de> for JsonRoot
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
Source§impl ToSource for JsonRoot
impl ToSource for JsonRoot
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
impl StructuralPartialEq for JsonRoot
Auto Trait Implementations§
impl Freeze for JsonRoot
impl RefUnwindSafe for JsonRoot
impl Send for JsonRoot
impl Sync for JsonRoot
impl Unpin for JsonRoot
impl UnsafeUnpin for JsonRoot
impl UnwindSafe for JsonRoot
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