pub enum FlattenedJsonValue {
    Null,
    Bool(bool),
    Integer(Int),
    String(String),
    Array(Vec<ScalarJsonValue>),
    EmptyObject,
}Expand description
Possible JSON values after an object is flattened.
Variants§
Null
Represents a null value.
Bool(bool)
Represents a boolean.
Integer(Int)
Represents an integer.
String(String)
Represents a string.
Array(Vec<ScalarJsonValue>)
Represents an array.
EmptyObject
Represents an empty object.
Implementations§
Source§impl FlattenedJsonValue
 
impl FlattenedJsonValue
Sourcepub fn as_bool(&self) -> Option<bool>
 Available on crate feature events only.
pub fn as_bool(&self) -> Option<bool>
events only.If the FlattenedJsonValue is a Bool, return the inner value.
Sourcepub fn as_integer(&self) -> Option<Int>
 Available on crate feature events only.
pub fn as_integer(&self) -> Option<Int>
events only.If the FlattenedJsonValue is an Integer, return the inner value.
Sourcepub fn as_str(&self) -> Option<&str>
 Available on crate feature events only.
pub fn as_str(&self) -> Option<&str>
events only.If the FlattenedJsonValue is a String, return a reference to the inner value.
Sourcepub fn as_array(&self) -> Option<&[ScalarJsonValue]>
 Available on crate feature events only.
pub fn as_array(&self) -> Option<&[ScalarJsonValue]>
events only.If the FlattenedJsonValue is an Array, return a reference to the inner value.
Trait Implementations§
Source§impl Clone for FlattenedJsonValue
 
impl Clone for FlattenedJsonValue
Source§fn clone(&self) -> FlattenedJsonValue
 
fn clone(&self) -> FlattenedJsonValue
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 FlattenedJsonValue
 
impl Debug for FlattenedJsonValue
Source§impl Default for FlattenedJsonValue
 
impl Default for FlattenedJsonValue
Source§fn default() -> FlattenedJsonValue
 
fn default() -> FlattenedJsonValue
Returns the “default value” for a type. Read more
Source§impl From<&str> for FlattenedJsonValue
 
impl From<&str> for FlattenedJsonValue
Source§fn from(value: &str) -> FlattenedJsonValue
 
fn from(value: &str) -> FlattenedJsonValue
Converts to this type from the input type.
Source§impl From<Int> for FlattenedJsonValue
 
impl From<Int> for FlattenedJsonValue
Source§fn from(value: Int) -> FlattenedJsonValue
 
fn from(value: Int) -> FlattenedJsonValue
Converts to this type from the input type.
Source§impl From<String> for FlattenedJsonValue
 
impl From<String> for FlattenedJsonValue
Source§fn from(value: String) -> FlattenedJsonValue
 
fn from(value: String) -> FlattenedJsonValue
Converts to this type from the input type.
Source§impl From<Vec<ScalarJsonValue>> for FlattenedJsonValue
 
impl From<Vec<ScalarJsonValue>> for FlattenedJsonValue
Source§fn from(value: Vec<ScalarJsonValue>) -> FlattenedJsonValue
 
fn from(value: Vec<ScalarJsonValue>) -> FlattenedJsonValue
Converts to this type from the input type.
Source§impl From<bool> for FlattenedJsonValue
 
impl From<bool> for FlattenedJsonValue
Source§fn from(value: bool) -> FlattenedJsonValue
 
fn from(value: bool) -> FlattenedJsonValue
Converts to this type from the input type.
Source§impl PartialEq for FlattenedJsonValue
 
impl PartialEq for FlattenedJsonValue
impl Eq for FlattenedJsonValue
impl StructuralPartialEq for FlattenedJsonValue
Auto Trait Implementations§
impl Freeze for FlattenedJsonValue
impl RefUnwindSafe for FlattenedJsonValue
impl Send for FlattenedJsonValue
impl Sync for FlattenedJsonValue
impl Unpin for FlattenedJsonValue
impl UnwindSafe for FlattenedJsonValue
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§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.