pub struct ClientRpcPluginsMarketplaces<'a> { /* private fields */ }Expand description
plugins.marketplaces.* RPCs.
Implementations§
Source§impl<'a> ClientRpcPluginsMarketplaces<'a>
impl<'a> ClientRpcPluginsMarketplaces<'a>
Sourcepub async fn list(&self) -> Result<MarketplaceListResult, Error>
pub async fn list(&self) -> Result<MarketplaceListResult, Error>
Lists all registered marketplaces (defaults + user-added).
Wire method: plugins.marketplaces.list.
§Returns
All registered marketplaces, including built-in defaults.
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 add(
&self,
params: PluginsMarketplacesAddRequest,
) -> Result<MarketplaceAddResult, Error>
pub async fn add( &self, params: PluginsMarketplacesAddRequest, ) -> Result<MarketplaceAddResult, Error>
Registers a new marketplace from a source (owner/repo, URL, or local path).
Wire method: plugins.marketplaces.add.
§Parameters
params- Marketplace source to register.
§Returns
Result of registering a new marketplace.
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 remove(
&self,
params: PluginsMarketplacesRemoveRequest,
) -> Result<MarketplaceRemoveResult, Error>
pub async fn remove( &self, params: PluginsMarketplacesRemoveRequest, ) -> Result<MarketplaceRemoveResult, Error>
Removes a previously-registered marketplace. When the marketplace has dependent plugins and force is not set, the marketplace is left intact and the result lists the dependents so the caller can decide whether to retry with force=true.
Wire method: plugins.marketplaces.remove.
§Parameters
params- Name of the marketplace to remove and an optional force flag.
§Returns
Outcome of the remove attempt, including dependent-plugin info when applicable.
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 browse(
&self,
params: PluginsMarketplacesBrowseRequest,
) -> Result<MarketplaceBrowseResult, Error>
pub async fn browse( &self, params: PluginsMarketplacesBrowseRequest, ) -> Result<MarketplaceBrowseResult, Error>
Lists plugins advertised by a registered marketplace.
Wire method: plugins.marketplaces.browse.
§Parameters
params- Name of the marketplace whose plugin catalog to fetch.
§Returns
Plugins advertised by the marketplace.
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 refresh(&self) -> Result<MarketplaceRefreshResult, Error>
pub async fn refresh(&self) -> Result<MarketplaceRefreshResult, Error>
Re-fetches one or all registered marketplace catalogs.
Wire method: plugins.marketplaces.refresh.
§Returns
Result of refreshing one or more marketplace catalogs.
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 refresh_with_params(
&self,
params: PluginsMarketplacesRefreshRequest,
) -> Result<MarketplaceRefreshResult, Error>
pub async fn refresh_with_params( &self, params: PluginsMarketplacesRefreshRequest, ) -> Result<MarketplaceRefreshResult, Error>
Re-fetches one or all registered marketplace catalogs.
Wire method: plugins.marketplaces.refresh.
§Parameters
params- Optional marketplace name; omit to refresh all.
§Returns
Result of refreshing one or more marketplace catalogs.
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 ClientRpcPluginsMarketplaces<'a>
impl<'a> Clone for ClientRpcPluginsMarketplaces<'a>
Source§fn clone(&self) -> ClientRpcPluginsMarketplaces<'a>
fn clone(&self) -> ClientRpcPluginsMarketplaces<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more