pub struct PluginsInstallRequest {
pub source: String,
pub working_directory: Option<String>,
}Expand description
Plugin source and optional working directory for relative-path resolution.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§source: StringPlugin install spec. Accepts the same forms as the CLI: “plugin@marketplace” (marketplace install), “owner/repo” or “owner/repo:subpath” (GitHub direct), an http/https/ssh URL, or a local path. Direct (non-marketplace) installs are deprecated and will produce a deprecationWarning in the result.
working_directory: Option<String>Working directory used to resolve relative local paths in source. Defaults to the server’s current working directory.
Trait Implementations§
Source§impl Clone for PluginsInstallRequest
impl Clone for PluginsInstallRequest
Source§fn clone(&self) -> PluginsInstallRequest
fn clone(&self) -> PluginsInstallRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginsInstallRequest
impl Debug for PluginsInstallRequest
Source§impl Default for PluginsInstallRequest
impl Default for PluginsInstallRequest
Source§fn default() -> PluginsInstallRequest
fn default() -> PluginsInstallRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginsInstallRequest
impl<'de> Deserialize<'de> for PluginsInstallRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PluginsInstallRequest
impl RefUnwindSafe for PluginsInstallRequest
impl Send for PluginsInstallRequest
impl Sync for PluginsInstallRequest
impl Unpin for PluginsInstallRequest
impl UnsafeUnpin for PluginsInstallRequest
impl UnwindSafe for PluginsInstallRequest
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