pub struct InputValidationPlugin { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InputValidationPlugin
impl Clone for InputValidationPlugin
Source§fn clone(&self) -> InputValidationPlugin
fn clone(&self) -> InputValidationPlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputValidationPlugin
impl Debug for InputValidationPlugin
Source§impl PluginHooks for InputValidationPlugin
impl PluginHooks for InputValidationPlugin
Source§fn before_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 mut Request<Body>,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 mut Request<Body>,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Hook called before a request is processed. Read more
Source§fn after_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_response: &'life1 mut Response<Body>,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn after_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_response: &'life1 mut Response<Body>,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Hook called after a response is received. Read more
Source§impl PluginLifecycle for InputValidationPlugin
impl PluginLifecycle for InputValidationPlugin
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the plugin with its configuration. Read more
Source§fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the plugin and begin processing requests. Read more
Source§fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop the plugin and stop processing requests. Read more
Source§fn cleanup<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cleanup<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clean up plugin resources. Read more
Source§fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), GatewayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform a health check on the plugin. Read more
Source§fn metadata(&self) -> &PluginMetadata
fn metadata(&self) -> &PluginMetadata
Get a reference to the plugin’s metadata.
Source§fn metadata_mut(&mut self) -> &mut PluginMetadata
fn metadata_mut(&mut self) -> &mut PluginMetadata
Get a mutable reference to the plugin’s metadata.
Auto Trait Implementations§
impl Freeze for InputValidationPlugin
impl RefUnwindSafe for InputValidationPlugin
impl Send for InputValidationPlugin
impl Sync for InputValidationPlugin
impl Unpin for InputValidationPlugin
impl UnsafeUnpin for InputValidationPlugin
impl UnwindSafe for InputValidationPlugin
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