pub struct ConfigSection {
pub name: String,
pub title: String,
pub about: String,
pub named: bool,
pub keys: Vec<ConfigKey>,
pub tables: Vec<ConfigTable>,
}Expand description
One section of speccoder.toml.
Fields§
§name: StringThe table name, e.g. model, or checks for [checks.<name>].
title: StringA title for people, e.g. Model.
about: StringWhat the section decides.
named: boolNamed tables ([checks.<name>], [mcp.<name>]): keys describe
one, tables hold the configured ones.
keys: Vec<ConfigKey>The keys (for a named section: the keys of each table, unset).
tables: Vec<ConfigTable>The configured named tables.
Trait Implementations§
Source§impl Clone for ConfigSection
impl Clone for ConfigSection
Source§impl Debug for ConfigSection
impl Debug for ConfigSection
Source§impl JsonSchema for ConfigSection
impl JsonSchema for ConfigSection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConfigSection
impl PartialEq for ConfigSection
Source§impl Serialize for ConfigSection
impl Serialize for ConfigSection
impl StructuralPartialEq for ConfigSection
Auto Trait Implementations§
impl Freeze for ConfigSection
impl RefUnwindSafe for ConfigSection
impl Send for ConfigSection
impl Sync for ConfigSection
impl Unpin for ConfigSection
impl UnsafeUnpin for ConfigSection
impl UnwindSafe for ConfigSection
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