pub struct Config {
pub rig: RigConfig,
pub checks: BTreeMap<String, CheckSettings>,
pub clips: BTreeMap<String, ClipExpectations>,
pub gait_groups: BTreeMap<String, GaitGroup>,
}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.
Implementations§
Source§impl Config
impl Config
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.
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
Auto Trait Implementations§
impl Freeze 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