pub struct FileContentResult {
pub content: String,
pub file_path: String,
pub line_count: usize,
pub truncated: bool,
}Expand description
Result for file content viewing
Fields§
§content: String§file_path: String§line_count: usize§truncated: boolTrait Implementations§
Source§impl Clone for FileContentResult
impl Clone for FileContentResult
Source§fn clone(&self) -> FileContentResult
fn clone(&self) -> FileContentResult
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 FileContentResult
impl Debug for FileContentResult
Source§impl<'de> Deserialize<'de> for FileContentResult
impl<'de> Deserialize<'de> for FileContentResult
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
Source§impl From<FileContentResult> for ToolResult
impl From<FileContentResult> for ToolResult
Source§fn from(r: FileContentResult) -> Self
fn from(r: FileContentResult) -> Self
Converts to this type from the input type.
Source§impl Serialize for FileContentResult
impl Serialize for FileContentResult
impl ToolOutput for FileContentResult
Auto Trait Implementations§
impl Freeze for FileContentResult
impl RefUnwindSafe for FileContentResult
impl Send for FileContentResult
impl Sync for FileContentResult
impl Unpin for FileContentResult
impl UnwindSafe for FileContentResult
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