pub struct RootConfigFile {
pub agent: BTreeMap<String, String>,
pub saved_playgrounds_dir: Option<PathBuf>,
pub playground: PlaygroundConfig,
}Expand description
Serializable model for the root config.toml file.
Fields§
§agent: BTreeMap<String, String>Agent id to command mapping under [agent].
saved_playgrounds_dir: Option<PathBuf>Optional directory for persisted playground snapshots.
Relative paths are resolved against ConfigPaths::root_dir.
playground: PlaygroundConfigOptional defaults inherited by all playgrounds.
Implementations§
Source§impl RootConfigFile
impl RootConfigFile
Sourcepub fn json_schema() -> Schema
pub fn json_schema() -> Schema
Returns a JSON Schema for the root config file format.
Trait Implementations§
Source§impl Clone for RootConfigFile
impl Clone for RootConfigFile
Source§fn clone(&self) -> RootConfigFile
fn clone(&self) -> RootConfigFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RootConfigFile
impl Debug for RootConfigFile
Source§impl Default for RootConfigFile
impl Default for RootConfigFile
Source§fn default() -> RootConfigFile
fn default() -> RootConfigFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RootConfigFile
impl<'de> Deserialize<'de> for RootConfigFile
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
Source§impl JsonSchema for RootConfigFile
impl JsonSchema for RootConfigFile
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 RootConfigFile
impl PartialEq for RootConfigFile
Source§impl Serialize for RootConfigFile
impl Serialize for RootConfigFile
impl Eq for RootConfigFile
impl StructuralPartialEq for RootConfigFile
Auto Trait Implementations§
impl Freeze for RootConfigFile
impl RefUnwindSafe for RootConfigFile
impl Send for RootConfigFile
impl Sync for RootConfigFile
impl Unpin for RootConfigFile
impl UnsafeUnpin for RootConfigFile
impl UnwindSafe for RootConfigFile
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