pub struct JsonField {
pub name: JsonString,
pub value: JsonValueNode,
pub span: Range<usize>,
}Expand description
Represents a single field (key-value pair) in a JSON object.
Fields§
§name: JsonStringThe name (key) of the field.
value: JsonValueNodeThe value of the field.
span: Range<usize>The source range of the field.
Trait Implementations§
Source§impl AsDocument for JsonField
impl AsDocument for JsonField
Source§impl<'de> Deserialize<'de> for JsonField
impl<'de> Deserialize<'de> for JsonField
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 JsonField
impl ToSource for JsonField
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 JsonField
Auto Trait Implementations§
impl Freeze for JsonField
impl RefUnwindSafe for JsonField
impl Send for JsonField
impl Sync for JsonField
impl Unpin for JsonField
impl UnsafeUnpin for JsonField
impl UnwindSafe for JsonField
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