pub struct ClientRpcCatalog<'a> { /* private fields */ }Expand description
catalog.* RPCs.
Implementations§
Source§impl<'a> ClientRpcCatalog<'a>
impl<'a> ClientRpcCatalog<'a>
Sourcepub async fn search(
&self,
params: CatalogSearchRequest,
) -> Result<CatalogSearchResult, Error>
pub async fn search( &self, params: CatalogSearchRequest, ) -> Result<CatalogSearchResult, Error>
Requests a bounded catalog search. This host-implemented server method is available through SDK/TUI hosts; standalone and C-ABI runtimes whose host does not implement server-method dispatch return JSON-RPC MethodNotFound. A runtime with search available returns inert candidate summaries, each with an opaque single-use handle scoped to this runtime instance; a runtime without it returns the typed search-unavailable result. Public authorities may be searched anonymously, while an authority that requires credentials yields the typed authentication-required result. All returned text, URLs, and package metadata are untrusted external data and can never trigger instructions, tools, or installation. Read-only: nothing is installed, configured, or persisted.
Wire method: catalog.search.
§Parameters
params- A bounded catalog search. Both the query length and the result count are capped by the schema so a caller cannot request an unbounded scan.
§Returns
Outcome of a catalog.search call: either bounded inert candidates, or one typed refusal. Never a partial success.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for ClientRpcCatalog<'a>
impl<'a> Clone for ClientRpcCatalog<'a>
Source§fn clone(&self) -> ClientRpcCatalog<'a>
fn clone(&self) -> ClientRpcCatalog<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more