pub struct BodyTransformationMiddleware { /* private fields */ }Expand description
Body transformation middleware that applies JSONPath-based transformations
Implementations§
Source§impl BodyTransformationMiddleware
impl BodyTransformationMiddleware
Sourcepub fn new(
request_rules: Vec<BodyTransformRule>,
response_rules: Vec<BodyTransformRule>,
) -> Self
pub fn new( request_rules: Vec<BodyTransformRule>, response_rules: Vec<BodyTransformRule>, ) -> Self
Create a new body transformation middleware
Auto Trait Implementations§
impl Freeze for BodyTransformationMiddleware
impl RefUnwindSafe for BodyTransformationMiddleware
impl Send for BodyTransformationMiddleware
impl Sync for BodyTransformationMiddleware
impl Unpin for BodyTransformationMiddleware
impl UnsafeUnpin for BodyTransformationMiddleware
impl UnwindSafe for BodyTransformationMiddleware
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