pub struct TruncationResult {
pub text: String,
pub was_truncated: bool,
pub original_lines: usize,
pub original_bytes: usize,
pub saved_path: Option<PathBuf>,
}Expand description
Result of tool output truncation.
Fields§
§text: StringThe truncated output text (or original if within limits).
was_truncated: boolWhether truncation was applied.
original_lines: usizeNumber of original lines (0 if unknown).
original_bytes: usizeNumber of original bytes.
saved_path: Option<PathBuf>Path to the saved full output file, if any.
Trait Implementations§
Source§impl Clone for TruncationResult
impl Clone for TruncationResult
Source§fn clone(&self) -> TruncationResult
fn clone(&self) -> TruncationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TruncationResult
impl RefUnwindSafe for TruncationResult
impl Send for TruncationResult
impl Sync for TruncationResult
impl Unpin for TruncationResult
impl UnsafeUnpin for TruncationResult
impl UnwindSafe for TruncationResult
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