pub struct ValidationFunction {}
Expand description
A validation task function that uses JsonLogic expressions to validate message data.
This function executes validation rules defined in JsonLogic against data in the message, and reports validation failures by adding errors to the message’s errors array.
Implementations§
Trait Implementations§
Source§impl AsyncFunctionHandler for ValidationFunction
impl AsyncFunctionHandler for ValidationFunction
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 mut Message,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<Change>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 mut Message,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<(usize, Vec<Change>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the function asynchronously on a message with input parameters Read more
Source§impl Default for ValidationFunction
impl Default for ValidationFunction
impl Send for ValidationFunction
impl Sync for ValidationFunction
Auto Trait Implementations§
impl Freeze for ValidationFunction
impl RefUnwindSafe for ValidationFunction
impl Unpin for ValidationFunction
impl UnwindSafe for ValidationFunction
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