pub struct ConfigSchema {
pub key: &'static str,
pub json_schema: Value,
}Expand description
Schema declaration for a plugin’s config section.
Returned by Plugin::config_schemas to enable eager validation
during resolve — before hooks ever run.
Contains a JSON Schema generated via schemars, validated at resolve
time with jsonschema.
Fields§
§key: &'static strSection key in AgentSpec.sections (must match PluginConfigKey::KEY).
json_schema: ValueJSON Schema for this section, generated by schemars::schema_for!.
Implementations§
Source§impl ConfigSchema
impl ConfigSchema
Sourcepub fn for_key<K: PluginConfigKey>() -> Self
pub fn for_key<K: PluginConfigKey>() -> Self
Build a schema declaration directly from a typed plugin config key.
Auto Trait Implementations§
impl Freeze for ConfigSchema
impl RefUnwindSafe for ConfigSchema
impl Send for ConfigSchema
impl Sync for ConfigSchema
impl Unpin for ConfigSchema
impl UnsafeUnpin for ConfigSchema
impl UnwindSafe for ConfigSchema
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