pub struct ClientRpcPlugins<'a> { /* private fields */ }Expand description
plugins.* RPCs.
Implementations§
Source§impl<'a> ClientRpcPlugins<'a>
impl<'a> ClientRpcPlugins<'a>
Sourcepub fn marketplaces(&self) -> ClientRpcPluginsMarketplaces<'a>
pub fn marketplaces(&self) -> ClientRpcPluginsMarketplaces<'a>
plugins.marketplaces.* sub-namespace.
Sourcepub async fn list(&self) -> Result<PluginListResult, Error>
pub async fn list(&self) -> Result<PluginListResult, Error>
Lists plugins installed in user/global state.
Wire method: plugins.list.
§Returns
Plugins installed in user/global state.
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 install(
&self,
params: PluginsInstallRequest,
) -> Result<PluginInstallResult, Error>
pub async fn install( &self, params: PluginsInstallRequest, ) -> Result<PluginInstallResult, Error>
Installs a plugin from a marketplace, GitHub repo, URL, or local path.
Wire method: plugins.install.
§Parameters
params- Plugin source and optional working directory for relative-path resolution.
§Returns
Result of installing a plugin.
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 uninstall(
&self,
params: PluginsUninstallRequest,
) -> Result<(), Error>
pub async fn uninstall( &self, params: PluginsUninstallRequest, ) -> Result<(), Error>
Uninstalls an installed plugin.
Wire method: plugins.uninstall.
§Parameters
params- Name (or spec) of the plugin to uninstall.
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 update(
&self,
params: PluginsUpdateRequest,
) -> Result<PluginUpdateResult, Error>
pub async fn update( &self, params: PluginsUpdateRequest, ) -> Result<PluginUpdateResult, Error>
Updates an installed plugin to its latest published version.
Wire method: plugins.update.
§Parameters
params- Name (or spec) of the plugin to update.
§Returns
Result of updating a single plugin.
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 update_all(&self) -> Result<PluginUpdateAllResult, Error>
pub async fn update_all(&self) -> Result<PluginUpdateAllResult, Error>
Updates every installed plugin to its latest published version.
Wire method: plugins.updateAll.
§Returns
Result of updating all installed plugins.
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 enable(&self, params: PluginsEnableRequest) -> Result<(), Error>
pub async fn enable(&self, params: PluginsEnableRequest) -> Result<(), Error>
Enables installed plugins for new sessions.
Wire method: plugins.enable.
§Parameters
params- Plugin names (or specs) to enable.
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 disable(&self, params: PluginsDisableRequest) -> Result<(), Error>
pub async fn disable(&self, params: PluginsDisableRequest) -> Result<(), Error>
Disables installed plugins for new sessions.
Wire method: plugins.disable.
§Parameters
params- Plugin names (or specs) to disable.
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 ClientRpcPlugins<'a>
impl<'a> Clone for ClientRpcPlugins<'a>
Source§fn clone(&self) -> ClientRpcPlugins<'a>
fn clone(&self) -> ClientRpcPlugins<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more