#[non_exhaustive]pub struct SourceProvenance {
pub resolved_storage_source: Option<StorageSource>,
pub resolved_repo_source: Option<RepoSource>,
pub resolved_storage_source_manifest: Option<StorageSourceManifest>,
pub file_hashes: HashMap<String, FileHashes>,
}Expand description
Provenance of the source. Ways to find the original source, or verify that some source was used for this build.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resolved_storage_source: Option<StorageSource>A copy of the build’s source.storage_source, if exists, with any
generations resolved.
resolved_repo_source: Option<RepoSource>A copy of the build’s source.repo_source, if exists, with any
revisions resolved.
resolved_storage_source_manifest: Option<StorageSourceManifest>A copy of the build’s source.storage_source_manifest, if exists, with any
revisions resolved.
This feature is in Preview.
file_hashes: HashMap<String, FileHashes>Output only. Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
FileHashes will only be populated if BuildOptions has requested a
SourceProvenanceHash.
The keys to this map are file paths used as build source and the values contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
(.tar.gz), the FileHash will be for the single path to that file.
Implementations§
Source§impl SourceProvenance
impl SourceProvenance
Sourcepub fn set_resolved_storage_source<T: Into<Option<StorageSource>>>(
self,
v: T,
) -> Self
pub fn set_resolved_storage_source<T: Into<Option<StorageSource>>>( self, v: T, ) -> Self
Sets the value of resolved_storage_source.
Sourcepub fn set_resolved_repo_source<T: Into<Option<RepoSource>>>(self, v: T) -> Self
pub fn set_resolved_repo_source<T: Into<Option<RepoSource>>>(self, v: T) -> Self
Sets the value of resolved_repo_source.
Sourcepub fn set_resolved_storage_source_manifest<T: Into<Option<StorageSourceManifest>>>(
self,
v: T,
) -> Self
pub fn set_resolved_storage_source_manifest<T: Into<Option<StorageSourceManifest>>>( self, v: T, ) -> Self
Sets the value of resolved_storage_source_manifest.
Sourcepub fn set_file_hashes<T, K, V>(self, v: T) -> Self
pub fn set_file_hashes<T, K, V>(self, v: T) -> Self
Sets the value of file_hashes.
Trait Implementations§
Source§impl Clone for SourceProvenance
impl Clone for SourceProvenance
Source§fn clone(&self) -> SourceProvenance
fn clone(&self) -> SourceProvenance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more