#[non_exhaustive]pub struct SourceProvenance {
pub resolved_storage_source: Option<StorageSource>,
pub resolved_repo_source: Option<RepoSource>,
pub git_uri: String,
/* private fields */
}
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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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.
git_uri: String
A copy of the build’s source.git_uri
, if exists, with any commits
resolved.
Implementations§
Source§impl SourceProvenance
impl SourceProvenance
pub fn new() -> Self
Sourcepub fn set_resolved_storage_source<T>(self, v: T) -> Selfwhere
T: Into<StorageSource>,
pub fn set_resolved_storage_source<T>(self, v: T) -> Selfwhere
T: Into<StorageSource>,
Sets the value of resolved_storage_source.
Sourcepub fn set_or_clear_resolved_storage_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<StorageSource>,
pub fn set_or_clear_resolved_storage_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<StorageSource>,
Sets or clears the value of resolved_storage_source.
Sourcepub fn set_resolved_repo_source<T>(self, v: T) -> Selfwhere
T: Into<RepoSource>,
pub fn set_resolved_repo_source<T>(self, v: T) -> Selfwhere
T: Into<RepoSource>,
Sets the value of resolved_repo_source.
Sourcepub fn set_or_clear_resolved_repo_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<RepoSource>,
pub fn set_or_clear_resolved_repo_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<RepoSource>,
Sets or clears the value of resolved_repo_source.
Sourcepub fn set_git_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_git_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of git_uri.
Trait Implementations§
Source§impl Clone for SourceProvenance
impl Clone for SourceProvenance
Source§fn clone(&self) -> SourceProvenance
fn clone(&self) -> SourceProvenance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SourceProvenance
impl Debug for SourceProvenance
Source§impl Default for SourceProvenance
impl Default for SourceProvenance
Source§fn default() -> SourceProvenance
fn default() -> SourceProvenance
Returns the “default value” for a type. Read more
Source§impl Message for SourceProvenance
impl Message for SourceProvenance
Source§impl PartialEq for SourceProvenance
impl PartialEq for SourceProvenance
impl StructuralPartialEq for SourceProvenance
Auto Trait Implementations§
impl Freeze for SourceProvenance
impl RefUnwindSafe for SourceProvenance
impl Send for SourceProvenance
impl Sync for SourceProvenance
impl Unpin for SourceProvenance
impl UnwindSafe for SourceProvenance
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