pub struct FileArtifactManifestStore { /* private fields */ }Expand description
File-backed artifact manifest store rooted at a directory.
This is a portability/manifest layer: FileArtifactManifestStore::write
serializes portable artifact references from a validated bundle and
FileArtifactManifestStore::open reloads and revalidates them against the
bundle. It never reads, writes or deserializes artifact payloads.
Implementations§
Source§impl FileArtifactManifestStore
impl FileArtifactManifestStore
pub fn write( root: impl AsRef<Path>, bundle: &ExecutionBundle, ) -> Result<FileArtifactManifest, DagMlError>
pub fn open( root: impl Into<PathBuf>, bundle: &ExecutionBundle, ) -> Result<FileArtifactManifestStore, DagMlError>
pub fn root(&self) -> &Path
pub fn manifest(&self) -> &FileArtifactManifest
Trait Implementations§
Source§impl Clone for FileArtifactManifestStore
impl Clone for FileArtifactManifestStore
Source§fn clone(&self) -> FileArtifactManifestStore
fn clone(&self) -> FileArtifactManifestStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileArtifactManifestStore
impl RefUnwindSafe for FileArtifactManifestStore
impl Send for FileArtifactManifestStore
impl Sync for FileArtifactManifestStore
impl Unpin for FileArtifactManifestStore
impl UnsafeUnpin for FileArtifactManifestStore
impl UnwindSafe for FileArtifactManifestStore
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