pub struct ConfigYaml {
pub routes: HashMap<String, RouteYaml>,
pub plugins: Vec<PluginDeclaration>,
pub other: HashMap<String, Value>,
}Expand description
Top-level config — only the bits step 5a understands.
policy_evaluator:, imports:, global:, defaults:, tags:,
plugin_dirs:, plugin_settings:, version: are all accepted and
stored opaquely; this struct deserializes leniently.
plugins: (the root block) is parsed into PluginDeclarations so
the runtime can look up hook names + capabilities per plugin without
going back to the raw YAML.
Fields§
§routes: HashMap<String, RouteYaml>§plugins: Vec<PluginDeclaration>Root plugins: block — full declarations.
other: HashMap<String, Value>Anything else top-level goes here — picked up by later steps.
Trait Implementations§
Source§impl Debug for ConfigYaml
impl Debug for ConfigYaml
Source§impl Default for ConfigYaml
impl Default for ConfigYaml
Source§fn default() -> ConfigYaml
fn default() -> ConfigYaml
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigYaml
impl<'de> Deserialize<'de> for ConfigYaml
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 ConfigYaml
impl RefUnwindSafe for ConfigYaml
impl Send for ConfigYaml
impl Sync for ConfigYaml
impl Unpin for ConfigYaml
impl UnsafeUnpin for ConfigYaml
impl UnwindSafe for ConfigYaml
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