pub enum PluginRouteRef {
Name(String),
WithOverrides(HashMap<String, Value>),
}Expand description
A reference to a plugin in a route or policy group.
plugins:
- rate_limiter # bare name
- pii_scanner: # name with config overrides
config:
sensitivity: highVariants§
Name(String)
Just the name — activate the plugin with no config overrides.
WithOverrides(HashMap<String, Value>)
Name with config overrides — single-key map.
Implementations§
Trait Implementations§
Source§impl Clone for PluginRouteRef
impl Clone for PluginRouteRef
Source§fn clone(&self) -> PluginRouteRef
fn clone(&self) -> PluginRouteRef
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 PluginRouteRef
impl Debug for PluginRouteRef
Source§impl<'de> Deserialize<'de> for PluginRouteRef
impl<'de> Deserialize<'de> for PluginRouteRef
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 PluginRouteRef
impl RefUnwindSafe for PluginRouteRef
impl Send for PluginRouteRef
impl Sync for PluginRouteRef
impl Unpin for PluginRouteRef
impl UnsafeUnpin for PluginRouteRef
impl UnwindSafe for PluginRouteRef
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