pub struct ResolvedArtifactSelections {
pub build: BuildSelections,
pub downloads: BTreeSet<KnownTestArtifacts>,
pub unknown: Vec<String>,
pub target_from_file: Option<String>,
pub needs_release_igvm: bool,
}Expand description
Result of resolving artifact requirements to build/download selections.
Fields§
§build: BuildSelectionsWhat to build
downloads: BTreeSet<KnownTestArtifacts>What to download
unknown: Vec<String>Any unknown artifacts that couldn’t be mapped
target_from_file: Option<String>Target triple from the artifacts file (if present)
needs_release_igvm: boolWhether any tests need release IGVM files from GitHub
Implementations§
Source§impl ResolvedArtifactSelections
impl ResolvedArtifactSelections
Sourcepub fn from_artifact_list_json(
json: &str,
target_arch: Architecture,
target_os: OperatingSystem,
) -> Result<Self>
pub fn from_artifact_list_json( json: &str, target_arch: Architecture, target_os: OperatingSystem, ) -> Result<Self>
Parse the JSON output from --list-required-artifacts and resolve to
build/download selections.
The target_arch and target_os parameters specify the target to
validate against. If the JSON contains a target field, it will be
checked to ensure it matches.
Trait Implementations§
Source§impl Debug for ResolvedArtifactSelections
impl Debug for ResolvedArtifactSelections
Auto Trait Implementations§
impl Freeze for ResolvedArtifactSelections
impl RefUnwindSafe for ResolvedArtifactSelections
impl Send for ResolvedArtifactSelections
impl Sync for ResolvedArtifactSelections
impl Unpin for ResolvedArtifactSelections
impl UnsafeUnpin for ResolvedArtifactSelections
impl UnwindSafe for ResolvedArtifactSelections
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