pub struct TruncateResult {
pub content: String,
pub truncated: bool,
pub output_path: Option<PathBuf>,
}Expand description
Result of a truncation attempt.
Fields§
§content: StringThe (possibly truncated) content to return to the agent.
truncated: boolWhether the output was truncated.
output_path: Option<PathBuf>Path to the full output file, if truncated.
Trait Implementations§
Source§impl Clone for TruncateResult
impl Clone for TruncateResult
Source§fn clone(&self) -> TruncateResult
fn clone(&self) -> TruncateResult
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 TruncateResult
impl RefUnwindSafe for TruncateResult
impl Send for TruncateResult
impl Sync for TruncateResult
impl Unpin for TruncateResult
impl UnsafeUnpin for TruncateResult
impl UnwindSafe for TruncateResult
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