pub struct PolicyGroup {
pub description: Option<String>,
pub metadata: HashMap<String, String>,
pub plugins: Vec<PluginRouteRef>,
pub identity: Option<RouteIdentityConfig>,
}Expand description
A named policy group — plugins to activate and optional metadata.
The all group is reserved and always applied.
Fields§
§description: Option<String>Human-readable description.
metadata: HashMap<String, String>Arbitrary metadata for tooling and audit.
plugins: Vec<PluginRouteRef>Plugin references to activate when this group matches.
identity: Option<RouteIdentityConfig>Authentication dispatch list contributed by this tag bundle
(YAML key authentication:). Inherited by routes that carry this
tag in meta.tags, stacked between the global authentication
(first) and the route’s own authentication (last). Same YAML shape
as the route-level authentication: block.
Trait Implementations§
Source§impl Clone for PolicyGroup
impl Clone for PolicyGroup
Source§fn clone(&self) -> PolicyGroup
fn clone(&self) -> PolicyGroup
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 PolicyGroup
impl Debug for PolicyGroup
Source§impl Default for PolicyGroup
impl Default for PolicyGroup
Source§fn default() -> PolicyGroup
fn default() -> PolicyGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyGroup
impl<'de> Deserialize<'de> for PolicyGroup
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 PolicyGroup
impl RefUnwindSafe for PolicyGroup
impl Send for PolicyGroup
impl Sync for PolicyGroup
impl Unpin for PolicyGroup
impl UnsafeUnpin for PolicyGroup
impl UnwindSafe for PolicyGroup
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