pub struct ClientRpcInstructions<'a> { /* private fields */ }Expand description
instructions.* RPCs.
Implementations§
Source§impl<'a> ClientRpcInstructions<'a>
impl<'a> ClientRpcInstructions<'a>
Sourcepub async fn discover(
&self,
params: InstructionsDiscoverRequest,
) -> Result<ServerInstructionSourceList, Error>
pub async fn discover( &self, params: InstructionsDiscoverRequest, ) -> Result<ServerInstructionSourceList, Error>
Discovers instruction sources across user, repository, and plugin sources.
Wire method: instructions.discover.
§Parameters
params- Optional project paths to include in instruction discovery.
§Returns
Instruction sources discovered across user, repository, and plugin sources.
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.
Sourcepub async fn get_discovery_paths(
&self,
params: InstructionsGetDiscoveryPathsRequest,
) -> Result<InstructionDiscoveryPathList, Error>
pub async fn get_discovery_paths( &self, params: InstructionsGetDiscoveryPathsRequest, ) -> Result<InstructionDiscoveryPathList, Error>
Returns the canonical files and directories where a client may create custom instructions that the runtime will recognize, including ones that do not exist yet. Repository targets become active once created.
Wire method: instructions.getDiscoveryPaths.
§Parameters
params- Optional project paths to include when enumerating instruction discovery targets.
§Returns
Canonical files and directories where custom instructions can be created so the runtime will recognize them.
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 ClientRpcInstructions<'a>
impl<'a> Clone for ClientRpcInstructions<'a>
Source§fn clone(&self) -> ClientRpcInstructions<'a>
fn clone(&self) -> ClientRpcInstructions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more