Struct streamdal_gjson::Value
source · pub struct Value<'a> { /* private fields */ }Expand description
Value is the JSON value returned from the get function.
Implementations§
source§impl<'a> Value<'a>
impl<'a> Value<'a>
pub fn get(&'a self, path: &'a str) -> Value<'a>
pub fn index(&self) -> Option<usize>
pub fn exists(&self) -> bool
pub fn kind(&self) -> Kind
pub fn json(&self) -> &str
pub fn f64(&'a self) -> f64
pub fn f32(&'a self) -> f32
pub fn i64(&'a self) -> i64
pub fn u64(&'a self) -> u64
pub fn i32(&'a self) -> i32
pub fn i16(&'a self) -> i16
pub fn i8(&'a self) -> i8
pub fn u32(&'a self) -> u32
pub fn u16(&'a self) -> u16
pub fn u8(&'a self) -> u8
pub fn bool(&'a self) -> bool
pub fn str(&'a self) -> &'a str
pub fn each(&'a self, iter: impl FnMut(Value<'a>, Value<'a>) -> bool)
pub fn array(&'a self) -> Vec<Value<'a>>
Trait Implementations§
source§impl<'a> Ord for Value<'a>
impl<'a> Ord for Value<'a>
source§impl<'a> PartialEq for Value<'a>
impl<'a> PartialEq for Value<'a>
source§impl<'a> PartialOrd for Value<'a>
impl<'a> PartialOrd for Value<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'a> Eq for Value<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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