pub struct DisplayResult {
pub content: String,
pub content_type: ResultContentType,
pub is_truncated: bool,
pub full_length: usize,
}Expand description
Formatted display result from a tool.
Fields§
§content: StringThe formatted content to display.
content_type: ResultContentTypeHow to render the content.
is_truncated: boolTrue if content was truncated.
full_length: usizeOriginal line count for “50 of 200 lines” display.
Trait Implementations§
Source§impl Clone for DisplayResult
impl Clone for DisplayResult
Source§fn clone(&self) -> DisplayResult
fn clone(&self) -> DisplayResult
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 moreAuto Trait Implementations§
impl Freeze for DisplayResult
impl RefUnwindSafe for DisplayResult
impl Send for DisplayResult
impl Sync for DisplayResult
impl Unpin for DisplayResult
impl UnwindSafe for DisplayResult
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