pub enum SourceRetrievalMethod {
Download {
url: String,
},
ExecuteCommand {
command: String,
env: HashMap<String, String>,
version_ctrl: Option<String>,
target_path: String,
error_persistence_version_control: Option<String>,
},
Other {
raw_var_values: EvalVarMap,
},
}Expand description
Describes how the source file can be obtained.
Variants§
Download
The source can be downloaded from the web, at the given URL.
ExecuteCommand
Evaluating the given command on the Windows Command shell with the given
environment variables will create the source file at target_path.
Fields
error_persistence_version_control: Option<String>An optional string which identifies files that use the same version control
system. Used for error persistence.
If a file encounters an error during command execution, and the command output
matches one of the strings in SrcSrvStream::error_persistence_command_output_strings(),
execution of the command should be skipped for all future entries with the same
error_persistence_version_control value.
See https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/language-specification-1#handling-server-errors.
Other
Grab bag for other cases. Please file issues about any extra cases you need.
Fields
raw_var_values: EvalVarMapTrait Implementations§
Source§impl Clone for SourceRetrievalMethod
impl Clone for SourceRetrievalMethod
Source§fn clone(&self) -> SourceRetrievalMethod
fn clone(&self) -> SourceRetrievalMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more