pub struct JsonString {
pub value: String,
pub span: Range<usize>,
}Expand description
Represents a JSON string literal.
Fields§
§value: StringThe string content (without quotes).
span: Range<usize>The source range of the string literal.
Trait Implementations§
Source§impl AsDocument for JsonString
impl AsDocument for JsonString
Source§impl Clone for JsonString
impl Clone for JsonString
Source§fn clone(&self) -> JsonString
fn clone(&self) -> JsonString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonString
impl Debug for JsonString
Source§impl<'de> Deserialize<'de> for JsonString
impl<'de> Deserialize<'de> for JsonString
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 PartialEq for JsonString
impl PartialEq for JsonString
Source§impl Serialize for JsonString
impl Serialize for JsonString
Source§impl ToSource for JsonString
impl ToSource for JsonString
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 JsonString
Auto Trait Implementations§
impl Freeze for JsonString
impl RefUnwindSafe for JsonString
impl Send for JsonString
impl Sync for JsonString
impl Unpin for JsonString
impl UnsafeUnpin for JsonString
impl UnwindSafe for JsonString
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