Struct wick_config::v1::Middleware
source · pub struct Middleware {
pub request: Vec<ComponentOperationExpression>,
pub response: Vec<ComponentOperationExpression>,
}Expand description
Request and response operations that run before and after the main operation.
Fields§
§request: Vec<ComponentOperationExpression>The middleware to apply to requests.
response: Vec<ComponentOperationExpression>The middleware to apply to responses.
Trait Implementations§
source§impl Clone for Middleware
impl Clone for Middleware
source§fn clone(&self) -> Middleware
fn clone(&self) -> Middleware
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 Middleware
impl Debug for Middleware
source§impl<'de> Deserialize<'de> for Middleware
impl<'de> Deserialize<'de> for Middleware
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
source§impl PartialEq<Middleware> for Middleware
impl PartialEq<Middleware> for Middleware
source§fn eq(&self, other: &Middleware) -> bool
fn eq(&self, other: &Middleware) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Middleware
impl Serialize for Middleware
source§impl TryFrom<Middleware> for Middleware
impl TryFrom<Middleware> for Middleware
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<Middleware> for Middleware
impl TryFrom<Middleware> for Middleware
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Middleware
Auto Trait Implementations§
impl RefUnwindSafe for Middleware
impl Send for Middleware
impl Sync for Middleware
impl Unpin for Middleware
impl UnwindSafe for Middleware
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