pub enum TestFunction {
Custom(String, Vec<FnArg>),
Length(Box<FnArg>),
Value(FnArg),
Count(FnArg),
Search(FnArg, FnArg),
Match(FnArg, FnArg),
}
Expand description
Enum representing different types of test functions in a JSONPath query.
Variants§
Custom(String, Vec<FnArg>)
Represents a custom function.
Length(Box<FnArg>)
Represents a length function.
Value(FnArg)
Represents a value function.
Count(FnArg)
Represents a count function.
Search(FnArg, FnArg)
Represents a search function.
Match(FnArg, FnArg)
Represents a match function.
Implementations§
Source§impl TestFunction
impl TestFunction
Source§impl TestFunction
impl TestFunction
pub fn try_new(name: &str, args: Vec<FnArg>) -> Result<Self, JsonPathError>
pub fn is_comparable(&self) -> bool
Trait Implementations§
Source§impl Clone for TestFunction
impl Clone for TestFunction
Source§fn clone(&self) -> TestFunction
fn clone(&self) -> TestFunction
Returns a copy 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 TestFunction
impl Debug for TestFunction
Source§impl Display for TestFunction
impl Display for TestFunction
Source§impl PartialEq for TestFunction
impl PartialEq for TestFunction
Source§impl Query for TestFunction
impl Query for TestFunction
impl StructuralPartialEq for TestFunction
Auto Trait Implementations§
impl Freeze for TestFunction
impl RefUnwindSafe for TestFunction
impl Send for TestFunction
impl Sync for TestFunction
impl Unpin for TestFunction
impl UnwindSafe for TestFunction
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