pub struct Config {
pub rig: RigConfig,
pub checks: BTreeMap<String, CheckSettings>,
pub clips: BTreeMap<String, ClipExpectations>,
pub gait_groups: BTreeMap<String, GaitGroup>,
pub sync_groups: BTreeMap<String, SyncGroup>,
}Expand description
The whole configuration. Field names match the animsmith.toml
sections.
Fields§
§rig: RigConfigDeclarative rig profile and inline role bindings. Frontends resolve
these into crate::ResolvedRoles before creating a check context;
the core runner does not apply them automatically.
checks: BTreeMap<String, CheckSettings>Per-check settings keyed by stable check id.
clips: BTreeMap<String, ClipExpectations>Keyed by clip name or glob (* wildcards). An exact-name entry
overrides glob entries; among globs, later (lexicographically
greater) keys win on conflict.
gait_groups: BTreeMap<String, GaitGroup>Named gait groups consumed by the gait-group check.
sync_groups: BTreeMap<String, SyncGroup>Named same-time / absolute-sync groups consumed by sync-group.
Implementations§
Source§impl Config
impl Config
Sourcepub fn validate(&self) -> Result<(), ConfigValidationError>
pub fn validate(&self) -> Result<(), ConfigValidationError>
Validate values that can also be supplied through the public Rust configuration structs.
Deserialization rejects the same invalid values at the file/config
boundary. Embedded callers that construct Config directly may call
this method for an earlier error; crate::evaluate_checks always
calls it before inspecting or executing the supplied check catalog.
§Errors
Returns ConfigValidationError::InvalidCheckSetting when a direct
per-check numeric policy is outside its documented finite domain,
ConfigValidationError::InvalidClipLoopCap when a clip selector
contains a negative or non-finite per-clip loop cap,
ConfigValidationError::InvalidSyncGroupTolerance when a same-time
group has an invalid timing tolerance, or
ConfigValidationError::InvalidTimeComplementSetting when an
enabled time-complement policy has an invalid threshold.
Sourcepub fn expectations_for(&self, clip: &str) -> ClipExpectations
pub fn expectations_for(&self, clip: &str) -> ClipExpectations
Effective expectations for a clip: glob matches (in key order) overlaid, exact match last.
Sourcepub fn check_settings(&self, id: &str) -> CheckSettings
pub fn check_settings(&self, id: &str) -> CheckSettings
Settings for a check id, or defaults when the id is not present.
Sourcepub fn loop_seam_min_stride_step_m(&self) -> f64
pub fn loop_seam_min_stride_step_m(&self) -> f64
Effective stride floor for loop-seam metrics, in metres.