vtcode_config/
telemetry.rs

1use serde::{Deserialize, Serialize};
2
3#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
4#[derive(Debug, Clone, Deserialize, Serialize)]
5pub struct TelemetryConfig {
6    #[serde(default = "default_true")]
7    pub trajectory_enabled: bool,
8}
9
10impl Default for TelemetryConfig {
11    fn default() -> Self {
12        Self {
13            trajectory_enabled: true,
14        }
15    }
16}
17
18fn default_true() -> bool {
19    true
20}