pub struct PersonaConfig {
pub name: String,
pub recipe: String,
pub credentials_env: Option<String>,
pub authorship_mode: AuthorshipMode,
pub phase: PersonaPhase,
pub overrides: Table,
}Expand description
One [[persona]] block.
recipe is a key of the form <crate_short>:<recipe> (e.g.
"heartbit-ghost:x") that names a persona recipe registered in the
PersonaRegistry. The lookup is deferred to daemon startup; this
struct only enforces the lexical shape.
Fields§
§name: StringLocal instance name (must be unique within the config file).
recipe: StringRecipe key in the form <crate_short>:<recipe>, e.g. "heartbit-ghost:x".
credentials_env: Option<String>Glob for env-var credential lookup, e.g. "X_*".
Authorship mode (default human_assisted).
phase: PersonaPhaseInitial autonomy phase.
overrides: TablePersona-specific overrides (free-form TOML table; interpreted by the
recipe’s expand()).
Typed as toml::Table (not toml::Value) so a misuse like
overrides = "string" fails at deserialize-time with a clear schema
error instead of surfacing later as a confusing expand() failure.
Implementations§
Trait Implementations§
Source§impl Clone for PersonaConfig
impl Clone for PersonaConfig
Source§fn clone(&self) -> PersonaConfig
fn clone(&self) -> PersonaConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more