Enum srcsrv::SourceRetrievalMethod[][src]

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.

Fields of Download

url: String
ExecuteCommand

Evaluating the given command on the Windows Command shell with the given environment variables will create the source file at target_path.

Fields of ExecuteCommand

command: String

The command to execute.

env: HashMap<String, String>

The environment veriables to set during command execution.

version_ctrl: Option<String>

An optional version control string.

target_path: String

The path at which the extracted file will appear once the command has run.

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 of Other

raw_var_values: EvalVarMap

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.