pub struct ExactSource {
pub asset: AssetId,
pub commit: String,
pub artifact: Option<ArtifactId>,
}Expand description
The exact, immutable source content a run’s source references resolved to when it started.
The engine fills this from the plan, so the record holds the commit itself and not only a pointer to evidence.
Fields§
§asset: AssetIdRepository asset the commit belongs to; a repository the task’s contract requires.
commit: StringFull lowercase hexadecimal object name, 40 or 64 digits.
artifact: Option<ArtifactId>The attached evidence artifact that attested the commit, when the source named one.
Trait Implementations§
Source§impl Clone for ExactSource
impl Clone for ExactSource
Source§impl Debug for ExactSource
impl Debug for ExactSource
Source§impl<'de> Deserialize<'de> for ExactSource
impl<'de> Deserialize<'de> for ExactSource
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 ExactSource
Source§impl PartialEq for ExactSource
impl PartialEq for ExactSource
Source§impl Serialize for ExactSource
impl Serialize for ExactSource
impl StructuralPartialEq for ExactSource
Auto Trait Implementations§
impl Freeze for ExactSource
impl RefUnwindSafe for ExactSource
impl Send for ExactSource
impl Sync for ExactSource
impl Unpin for ExactSource
impl UnsafeUnpin for ExactSource
impl UnwindSafe for ExactSource
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