pub enum ResponseHandler {
Json {
json_path: String,
},
Deno {
program: String,
},
}
Variants§
Implementations§
source§impl ResponseHandler
impl ResponseHandler
pub fn process_body(&self, body: &str) -> Result<String>
Trait Implementations§
source§impl Clone for ResponseHandler
impl Clone for ResponseHandler
source§fn clone(&self) -> ResponseHandler
fn clone(&self) -> ResponseHandler
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 ResponseHandler
impl Debug for ResponseHandler
source§impl PartialEq for ResponseHandler
impl PartialEq for ResponseHandler
source§fn eq(&self, other: &ResponseHandler) -> bool
fn eq(&self, other: &ResponseHandler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResponseHandler
impl StructuralPartialEq for ResponseHandler
Auto Trait Implementations§
impl Freeze for ResponseHandler
impl RefUnwindSafe for ResponseHandler
impl Send for ResponseHandler
impl Sync for ResponseHandler
impl Unpin for ResponseHandler
impl UnwindSafe for ResponseHandler
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<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.