pub enum JsonToken {
Key(String),
StringVal(String),
Number(String),
Literal(String),
Punctuation(String),
Whitespace(String),
Newline,
Error(String),
}Expand description
A classified JSON token for rendering.
Variants§
Key(String)
Object key (string before colon).
StringVal(String)
String value.
Number(String)
Number value.
Literal(String)
Boolean or null literal.
Punctuation(String)
Structural character: {, }, [, ], :, ,.
Whitespace(String)
Whitespace / indentation.
Newline
Newline.
Error(String)
Error text (invalid JSON portion).
Trait Implementations§
impl Eq for JsonToken
impl StructuralPartialEq for JsonToken
Auto Trait Implementations§
impl Freeze for JsonToken
impl RefUnwindSafe for JsonToken
impl Send for JsonToken
impl Sync for JsonToken
impl Unpin for JsonToken
impl UnsafeUnpin for JsonToken
impl UnwindSafe for JsonToken
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.