pub struct FindResource<'a> { /* private fields */ }Expand description
Accessor for the /find endpoints.
Implementations§
Source§impl<'a> FindResource<'a>
impl<'a> FindResource<'a>
Sourcepub async fn files(
&self,
params: &FindFilesParams,
) -> Result<FindFilesResponse, OpencodeError>
pub async fn files( &self, params: &FindFilesParams, ) -> Result<FindFilesResponse, OpencodeError>
Search for files by name.
GET /find/file?query=<query>
Sourcepub async fn symbols(
&self,
params: &FindSymbolsParams,
) -> Result<FindSymbolsResponse, OpencodeError>
pub async fn symbols( &self, params: &FindSymbolsParams, ) -> Result<FindSymbolsResponse, OpencodeError>
Search for symbols by name.
GET /find/symbol?query=<query>
Sourcepub async fn text(
&self,
params: &FindTextParams,
) -> Result<FindTextResponse, OpencodeError>
pub async fn text( &self, params: &FindTextParams, ) -> Result<FindTextResponse, OpencodeError>
Search for text in files.
GET /find?pattern=<pattern>
Auto Trait Implementations§
impl<'a> Freeze for FindResource<'a>
impl<'a> !RefUnwindSafe for FindResource<'a>
impl<'a> Send for FindResource<'a>
impl<'a> Sync for FindResource<'a>
impl<'a> Unpin for FindResource<'a>
impl<'a> !UnwindSafe for FindResource<'a>
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