pub struct Config {
pub package: Option<PackageMetadata>,
pub plugin: Option<Value>,
pub dependencies: IndexMap<SourceName, RawEntry>,
pub local_dependencies: IndexMap<SourceName, RawEntry>,
pub settings: Settings,
pub models: IndexMap<String, ModelAlias>,
pub agents: IndexMap<String, AgentOverlay>,
pub skills: IndexMap<String, SkillOverlay>,
pub unknown_keys: Vec<SchemaDiagnostic>,
pub floor: Option<Floor>,
}Expand description
Top-level mars.toml configuration.
Fields§
§package: Option<PackageMetadata>§plugin: Option<Value>§dependencies: IndexMap<SourceName, RawEntry>§local_dependencies: IndexMap<SourceName, RawEntry>Local-only dependencies — installed when syncing this repo but NOT exported to consumers via manifest. Use for dev tooling, prompt authoring helpers, etc.
settings: Settings§models: IndexMap<String, ModelAlias>§agents: IndexMap<String, AgentOverlay>§skills: IndexMap<String, SkillOverlay>§unknown_keys: Vec<SchemaDiagnostic>A note for each key of the file this Mars did not read, set when the file is read.
floor: Option<Floor>The Mars the file’s tool rules need, set when the file is read.
Implementations§
Source§impl Config
impl Config
Sourcepub fn dependency_unknown_keys(&self) -> Vec<SchemaDiagnostic>
pub fn dependency_unknown_keys(&self) -> Vec<SchemaDiagnostic>
One note for each key of a dependency entry that Mars did not read.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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