pub enum RequestOpConfig {
SetHeader {
name: String,
value: String,
},
RemoveHeader {
name: String,
},
RewritePath {
pattern: String,
template: String,
},
Mutate {
mutate: MutateOp,
},
Body,
SetBody,
RewriteBody,
Callback,
}Expand description
Serialisable request op — the config mirror of RequestOp. Tagged by
op; RewritePath carries the pattern as a string (compiled to a
Regex at TransformConfig::into_transform time), and Mutate flattens
the existing serde MutateOp. The body/callback ops are accepted by
the wire form but rejected at lowering, preserving the historical errors.
Variants§
Trait Implementations§
Source§impl Clone for RequestOpConfig
impl Clone for RequestOpConfig
Source§impl Debug for RequestOpConfig
impl Debug for RequestOpConfig
Source§impl<'de> Deserialize<'de> for RequestOpConfig
impl<'de> Deserialize<'de> for RequestOpConfig
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 RequestOpConfig
impl RefUnwindSafe for RequestOpConfig
impl Send for RequestOpConfig
impl Sync for RequestOpConfig
impl Unpin for RequestOpConfig
impl UnsafeUnpin for RequestOpConfig
impl UnwindSafe for RequestOpConfig
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