pub struct TransformConfig {
pub request_pipeline: Vec<RequestOpConfig>,
pub response_pipeline: Vec<ResponseOpConfig>,
}Expand description
Typed config surface for the transform middleware — ordered request- and
response-side op pipelines.
Fields§
§request_pipeline: Vec<RequestOpConfig>§response_pipeline: Vec<ResponseOpConfig>Implementations§
Source§impl TransformConfig
impl TransformConfig
Sourcepub fn with_request_op(self, op: RequestOpConfig) -> Self
pub fn with_request_op(self, op: RequestOpConfig) -> Self
Fluent: append a request-side op.
Sourcepub fn with_response_op(self, op: ResponseOpConfig) -> Self
pub fn with_response_op(self, op: ResponseOpConfig) -> Self
Fluent: append a response-side op.
Sourcepub fn into_transform(
self,
inner: PipeHandle,
) -> Result<Transform<PipeHandle>, ProximaError>
pub fn into_transform( self, inner: PipeHandle, ) -> Result<Transform<PipeHandle>, ProximaError>
Materialise the transform middleware around inner, compiling any
rewrite_path patterns and rejecting unimplemented body/callback ops.
Trait Implementations§
Source§impl Clone for TransformConfig
impl Clone for TransformConfig
Source§impl Debug for TransformConfig
impl Debug for TransformConfig
Source§impl Default for TransformConfig
impl Default for TransformConfig
Source§impl<'de> Deserialize<'de> for TransformConfig
impl<'de> Deserialize<'de> for TransformConfig
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
Auto Trait Implementations§
impl Freeze for TransformConfig
impl RefUnwindSafe for TransformConfig
impl Send for TransformConfig
impl Sync for TransformConfig
impl Unpin for TransformConfig
impl UnsafeUnpin for TransformConfig
impl UnwindSafe for TransformConfig
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