pub struct CompactActivityMetadata {
pub group_id: u64,
pub command_count: usize,
pub command: Option<CompactStr>,
pub hidden_line_count: usize,
pub suffix: Option<CompactStr>,
pub review_anchor: Option<ToolOutputId>,
pub review_anchors: Vec<ToolOutputId>,
}Expand description
Presentation metadata for a compact command activity row.
The complete command output is sent through RecordToolOutput separately.
Keeping this small metadata object independent means compact rendering can
replace a row without truncating, reordering, or otherwise changing the
captured stdout, stderr, PTY, or spool-backed transcript.
Fields§
§group_id: u64Identifier shared by all rows in one contiguous successful-command group.
command_count: usizeNumber of successful commands represented by the row.
command: Option<CompactStr>The command text for a single-command row. Grouped rows leave this empty.
Number of complete output lines hidden behind the review affordance.
suffix: Option<CompactStr>Optional status or artifact text that remains visible in the row.
review_anchor: Option<ToolOutputId>First complete capture represented by the row, used as the review focus.
review_anchors: Vec<ToolOutputId>All complete captures represented by the row, in render order.
review_anchor remains the first capture for compatibility with the
click protocol; this list lets the UI re-anchor every member of a
grouped row without guessing from transcript text.
Implementations§
Source§impl CompactActivityMetadata
impl CompactActivityMetadata
Sourcepub fn display_text(&self) -> String
pub fn display_text(&self) -> String
Return the compact row text without the UI-only review affordance.
Trait Implementations§
Source§impl Clone for CompactActivityMetadata
impl Clone for CompactActivityMetadata
Source§fn clone(&self) -> CompactActivityMetadata
fn clone(&self) -> CompactActivityMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompactActivityMetadata
impl Debug for CompactActivityMetadata
impl Eq for CompactActivityMetadata
Source§impl PartialEq for CompactActivityMetadata
impl PartialEq for CompactActivityMetadata
impl StructuralPartialEq for CompactActivityMetadata
Auto Trait Implementations§
impl Freeze for CompactActivityMetadata
impl RefUnwindSafe for CompactActivityMetadata
impl Send for CompactActivityMetadata
impl Sync for CompactActivityMetadata
impl Unpin for CompactActivityMetadata
impl UnsafeUnpin for CompactActivityMetadata
impl UnwindSafe for CompactActivityMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.