pub struct SourceSnapshot {
pub identity: Identity,
pub inventory: Vec<u8>,
pub selection: Vec<u8>,
pub files: BTreeMap<Id, Vec<u8>>,
pub excluded_paths: Vec<String>,
}Fields§
§identity: Identity§inventory: Vec<u8>§selection: Vec<u8>Exact selection bytes for the future stage input builder to retain.
files: BTreeMap<Id, Vec<u8>>Source artifact IDs are derived from their complete relative path. The inventory is the authoritative mapping back to source labels and modes.
excluded_paths: Vec<String>Implementations§
Source§impl SourceSnapshot
impl SourceSnapshot
pub fn capture(repo: &GitRepo, base: &str) -> Result<Self, String>
Sourcepub fn verify_candidate(
&self,
repo: &GitRepo,
mission_id: &str,
) -> Result<(), String>
pub fn verify_candidate( &self, repo: &GitRepo, mission_id: &str, ) -> Result<(), String>
Acceptance judges committed source, and must not omit a changed source path to keep credentials private. Mission records are a separately declared metadata class (approved plan/evidence), never source coverage.
pub fn verify_current(&self, repo: &GitRepo) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceSnapshot
impl RefUnwindSafe for SourceSnapshot
impl Send for SourceSnapshot
impl Sync for SourceSnapshot
impl Unpin for SourceSnapshot
impl UnsafeUnpin for SourceSnapshot
impl UnwindSafe for SourceSnapshot
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