pub enum ExtractValue {
Simple(String),
JqExpr(String),
Ternary(String),
}Expand description
Extract value type
Variants§
Simple(String)
Simple JQ path: .user.id
JqExpr(String)
JQ expression: .items | length
Ternary(String)
Ternary expression (raw string): .status == 200 ? “OK” : “Error”
Implementations§
Trait Implementations§
Source§impl Clone for ExtractValue
impl Clone for ExtractValue
Source§fn clone(&self) -> ExtractValue
fn clone(&self) -> ExtractValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtractValue
impl Debug for ExtractValue
Source§impl<'de> Deserialize<'de> for ExtractValue
impl<'de> Deserialize<'de> for ExtractValue
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 ExtractValue
impl PartialEq for ExtractValue
Source§impl Serialize for ExtractValue
impl Serialize for ExtractValue
impl StructuralPartialEq for ExtractValue
Auto Trait Implementations§
impl Freeze for ExtractValue
impl RefUnwindSafe for ExtractValue
impl Send for ExtractValue
impl Sync for ExtractValue
impl Unpin for ExtractValue
impl UnsafeUnpin for ExtractValue
impl UnwindSafe for ExtractValue
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