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 Configwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(OverlayToolName, ToolAction)>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<SourceName, RawEntry>>: Freeze,
PhantomData<NetworkHost>: Freeze,
PhantomData<ModelPolicyRule>: Freeze,
PhantomData<Bucket<String, ModelAlias>>: Freeze,
PhantomData<Bucket<String, AgentOverlay>>: Freeze,
PhantomData<Bucket<String, SkillOverlay>>: Freeze,
PhantomData<SchemaDiagnostic>: Freeze,
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Configwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(OverlayToolName, ToolAction)>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<SourceName, RawEntry>>: UnsafeUnpin,
PhantomData<NetworkHost>: UnsafeUnpin,
PhantomData<ModelPolicyRule>: UnsafeUnpin,
PhantomData<Bucket<String, ModelAlias>>: UnsafeUnpin,
PhantomData<Bucket<String, AgentOverlay>>: UnsafeUnpin,
PhantomData<Bucket<String, SkillOverlay>>: UnsafeUnpin,
PhantomData<SchemaDiagnostic>: UnsafeUnpin,
impl UnwindSafe for Configwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
&'static str: UnwindSafe,
NonNull<u8>: UnwindSafe,
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