pub struct ModelCache {
pub root: PathBuf,
}Fields§
§root: PathBufImplementations§
Source§impl ModelCache
impl ModelCache
pub fn from_env_or(root: impl Into<PathBuf>) -> Self
pub fn model_dir(&self, manifest: &ModelManifest) -> PathBuf
pub fn artifact_path( &self, manifest: &ModelManifest, artifact: &ModelArtifact, ) -> PathBuf
pub fn inspect(&self, manifest: &ModelManifest) -> ProvisionPlan
pub fn ensure_dirs( &self, manifest: &ModelManifest, ) -> Result<(), ProvisioningError>
Trait Implementations§
Source§impl Clone for ModelCache
impl Clone for ModelCache
Source§fn clone(&self) -> ModelCache
fn clone(&self) -> ModelCache
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 moreSource§impl Debug for ModelCache
impl Debug for ModelCache
Source§impl PartialEq for ModelCache
impl PartialEq for ModelCache
Source§fn eq(&self, other: &ModelCache) -> bool
fn eq(&self, other: &ModelCache) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModelCache
impl StructuralPartialEq for ModelCache
Auto Trait Implementations§
impl Freeze for ModelCache
impl RefUnwindSafe for ModelCache
impl Send for ModelCache
impl Sync for ModelCache
impl Unpin for ModelCache
impl UnsafeUnpin for ModelCache
impl UnwindSafe for ModelCache
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