pub struct Counters {
pub turns: u32,
pub tool_calls: u32,
pub fleet_dispatch: u32,
pub workflow_run: u32,
pub subagent_spawn: u32,
pub mcp_server_connected: u32,
pub memory_search: u32,
pub approval_modal_shown: u32,
pub approval_auto_allowed: u32,
pub command_palette_open: u32,
}Expand description
Feature-use counts for one session.
A struct of named u32s rather than a map, deliberately: a
BTreeMap<&'static str, u32> is an open key set the compiler cannot police,
so the doc-match test would be asserting that the doc matches a fixture
rather than the binary. Adding a counter now requires editing this file,
which is where that test lives. Every field serializes, including zeros.
Fields§
§turns: u32Model turns completed.
tool_calls: u32Tool calls executed, across every surface.
fleet_dispatch: u32Fleet dispatches started.
workflow_run: u32workflow_run invocations, keyed off the parsed action discriminant.
subagent_spawn: u32Sub-agents spawned.
mcp_server_connected: u32MCP servers that reached connected.
memory_search: u32Native-memory searches.
approval_modal_shown: u32Approval modals shown.
approval_auto_allowed: u32Approvals granted by an auto-allow rule.
command_palette_open: u32Command-palette opens.
Implementations§
Trait Implementations§
impl Copy for Counters
Source§impl<'de> Deserialize<'de> for Counters
impl<'de> Deserialize<'de> for Counters
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
impl Eq for Counters
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.