pub struct GlobalConfig {
pub policies: HashMap<String, PolicyGroup>,
pub defaults: HashMap<String, PolicyGroup>,
pub identity: Option<RouteIdentityConfig>,
}Expand description
Global configuration — applies across all routes.
Only used when routing is enabled. Contains named policy groups
(including the reserved all group) and per-entity-type defaults.
Fields§
§policies: HashMap<String, PolicyGroup>Named policy groups. The reserved name all is applied to
every request unconditionally. Other groups are inherited
by routes via meta.tags.
defaults: HashMap<String, PolicyGroup>Per-entity-type default policy groups.
Keys are tool, resource, prompt, llm.
identity: Option<RouteIdentityConfig>Global identity dispatch list. Inherited by every route as
the first layer of identity resolution. Routes can append
to it (additive, the default) or replace it (with
identity.replace_inherited: true on the route).
Same YAML shape as the route-level identity: block — see
RouteEntry.identity for the accepted forms.
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
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 GlobalConfig
impl Debug for GlobalConfig
Source§impl Default for GlobalConfig
impl Default for GlobalConfig
Source§fn default() -> GlobalConfig
fn default() -> GlobalConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
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 GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnsafeUnpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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