pub struct SearchFiles {
pub root: PathBuf,
pub max_results: usize,
}Fields§
§root: PathBuf§max_results: usizeImplementations§
Trait Implementations§
Source§impl Clone for SearchFiles
impl Clone for SearchFiles
Source§fn clone(&self) -> SearchFiles
fn clone(&self) -> SearchFiles
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 moreSource§impl Debug for SearchFiles
impl Debug for SearchFiles
Source§impl Tool for SearchFiles
impl Tool for SearchFiles
fn spec(&self) -> ToolSpec
Source§fn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Whether this tool only reads data without side effects.
Default: false (conservative). Override to true for read-only tools.
fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for SearchFiles
impl RefUnwindSafe for SearchFiles
impl Send for SearchFiles
impl Sync for SearchFiles
impl Unpin for SearchFiles
impl UnsafeUnpin for SearchFiles
impl UnwindSafe for SearchFiles
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