pub struct ResolveInput<'a> {Show 13 fields
pub binary_name: &'a str,
pub expected_name: Option<&'a str>,
pub expected_version: &'a str,
pub sources: &'a [Source],
pub platform: Platform,
pub user_setting_path: Option<&'a str>,
pub env: &'a HashMap<String, String>,
pub env_config: EnvConfig,
pub path_entries: &'a [String],
pub bundled_dir: Option<&'a str>,
pub cargo_bin: Option<&'a str>,
pub pkgmgr: Option<&'a PkgmgrConfig>,
pub dotnet_tool: Option<&'a DotnetToolConfig>,
}Expand description
Runtime inputs for a single resolve call.
Fields§
§binary_name: &'a strBinary name (argv[0]), without .exe.
expected_name: Option<&'a str>Name the binary must self-report; defaults to binary_name.
expected_version: &'a strRequired semver.
sources: &'a [Source]Declared discovery chain (filter on the full Source enum).
platform: PlatformCurrent platform (controls .exe suffix + pkgmgr command fan-out).
user_setting_path: Option<&'a str>Path from the IDE settings key, if any.
env: &'a HashMap<String, String>Env map probed via EnvConfig.path_var / dir_var.
env_config: EnvConfigWhich env vars to read.
path_entries: &'a [String]Expanded PATH entries (not raw $PATH; caller already split).
bundled_dir: Option<&'a str>Bundled <extensionRoot>/bin/<platform> directory.
cargo_bin: Option<&'a str>Cargo bin location for Zed-style cargo-bin fallback.
pkgmgr: Option<&'a PkgmgrConfig>Optional pkgmgr policy.
dotnet_tool: Option<&'a DotnetToolConfig>Optional dotnet-tool policy.
Trait Implementations§
Source§impl<'a> Clone for ResolveInput<'a>
impl<'a> Clone for ResolveInput<'a>
Source§fn clone(&self) -> ResolveInput<'a>
fn clone(&self) -> ResolveInput<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ResolveInput<'a>
impl<'a> RefUnwindSafe for ResolveInput<'a>
impl<'a> Send for ResolveInput<'a>
impl<'a> Sync for ResolveInput<'a>
impl<'a> Unpin for ResolveInput<'a>
impl<'a> UnsafeUnpin for ResolveInput<'a>
impl<'a> UnwindSafe for ResolveInput<'a>
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