pub enum RunSource {
GitCommit {
asset: AssetId,
commit: String,
},
Artifact {
artifact: ArtifactId,
},
}Expand description
An exact, immutable reference to the source a run executes against.
A branch or path is mutable, so it is not a source reference: name the commit.
Variants§
GitCommit
A commit of a repository asset the work requires.
Fields
Artifact
Git commit evidence attached to this task, as attach-git-head records it: a GitCommit
artifact whose commit and asset_id metadata and git:asset:ASSET@COMMIT URI name an
exact commit of a repository the task requires. Evidence that names only a branch, or a
different asset than its metadata, is not an exact source and is refused.
Fields
§
artifact: ArtifactIdAn artifact attached to the task.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunSource
impl<'de> Deserialize<'de> for RunSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunSource
impl StructuralPartialEq for RunSource
Auto Trait Implementations§
impl Freeze for RunSource
impl RefUnwindSafe for RunSource
impl Send for RunSource
impl Sync for RunSource
impl Unpin for RunSource
impl UnsafeUnpin for RunSource
impl UnwindSafe for RunSource
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