pub struct Dependencies { /* private fields */ }Expand description
One validated dependency snapshot. Unknown workload kinds remain in raw JSON.
Implementations§
Source§impl Dependencies
impl Dependencies
Sourcepub fn from_json(raw: Value) -> Result<Self, DependencyError>
pub fn from_json(raw: Value) -> Result<Self, DependencyError>
Validates an owned JSON snapshot without opening its referenced files.
Sourcepub fn load(path: &Path) -> Result<Self, DependencyError>
pub fn load(path: &Path) -> Result<Self, DependencyError>
Verifies both task input files and loads a canonical dependency snapshot.
Requires sibling workflow-inputs.json checksum evidence; current
program/receipt references, when present, must agree with that evidence.
Sourcepub fn from_env() -> Result<Self, DependencyError>
pub fn from_env() -> Result<Self, DependencyError>
Loads WORKFLOW_DEPENDENCIES_PATH, supplied by a Workflow program launch.
Sourcepub const fn raw_json(&self) -> &Value
pub const fn raw_json(&self) -> &Value
Borrows the original snapshot, including unknown extension fields/kinds.
Sourcepub fn recordings(&self) -> Selection<'_, RecordingDependency>
pub fn recordings(&self) -> Selection<'_, RecordingDependency>
Selects completed member recordings in deterministic snapshot order.
Sourcepub fn programs(&self) -> Selection<'_, ProgramDependency>
pub fn programs(&self) -> Selection<'_, ProgramDependency>
Selects program and Python task artifact directories.
Sourcepub fn npy_batches(&self) -> Selection<'_, NpyDependency>
pub fn npy_batches(&self) -> Selection<'_, NpyDependency>
Selects aggregate NPY batches; this does not filter members within a batch.
Trait Implementations§
Source§impl Clone for Dependencies
impl Clone for Dependencies
Auto Trait Implementations§
impl Freeze for Dependencies
impl RefUnwindSafe for Dependencies
impl Send for Dependencies
impl Sync for Dependencies
impl Unpin for Dependencies
impl UnsafeUnpin for Dependencies
impl UnwindSafe for Dependencies
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more