pub struct AttributionState {
pub file_states: HashMap<String, FileAttributionState>,
pub session_baselines: HashMap<String, SessionBaseline>,
pub surface: String,
pub starting_head_sha: Option<String>,
pub prompt_count: u32,
pub prompt_count_at_last_commit: u32,
pub permission_prompt_count: u32,
pub permission_prompt_count_at_last_commit: u32,
pub escape_count: u32,
pub escape_count_at_last_commit: u32,
}Expand description
Attribution state for tracking Claude’s contributions to files.
Fields§
§file_states: HashMap<String, FileAttributionState>File states keyed by relative path (from cwd)
session_baselines: HashMap<String, SessionBaseline>Session baseline states for net change calculation
surface: StringSurface from which edits were made
starting_head_sha: Option<String>HEAD SHA at session start (for detecting external commits)
prompt_count: u32Total prompts in session (for steer count calculation)
prompt_count_at_last_commit: u32Prompts at last commit (to calculate steers for current commit)
permission_prompt_count: u32Permission prompt tracking
permission_prompt_count_at_last_commit: u32§escape_count: u32ESC press tracking (user cancelled permission prompt)
escape_count_at_last_commit: u32Trait Implementations§
Source§impl Clone for AttributionState
impl Clone for AttributionState
Source§fn clone(&self) -> AttributionState
fn clone(&self) -> AttributionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributionState
impl Debug for AttributionState
Source§impl<'de> Deserialize<'de> for AttributionState
impl<'de> Deserialize<'de> for AttributionState
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 AttributionState
impl RefUnwindSafe for AttributionState
impl Send for AttributionState
impl Sync for AttributionState
impl Unpin for AttributionState
impl UnsafeUnpin for AttributionState
impl UnwindSafe for AttributionState
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