pub struct ModelBundle {
pub root: PathBuf,
pub manifest: ModelBundleManifest,
}Expand description
Data type for model bundle.
Fields§
§root: PathBufThe root value.
manifest: ModelBundleManifestThe manifest value.
Implementations§
Source§impl ModelBundle
impl ModelBundle
Sourcepub fn manifest_path(&self) -> PathBuf
pub fn manifest_path(&self) -> PathBuf
Returns manifest path.
Sourcepub fn artifact_refs(&self) -> Vec<ArtifactRef>
pub fn artifact_refs(&self) -> Vec<ArtifactRef>
Returns generic job artifact references for the files in this model bundle.
Sourcepub fn to_downloaded_model(&self) -> DownloadedModel
pub fn to_downloaded_model(&self) -> DownloadedModel
Converts this value to downloaded model.
Trait Implementations§
Source§impl Clone for ModelBundle
impl Clone for ModelBundle
Source§fn clone(&self) -> ModelBundle
fn clone(&self) -> ModelBundle
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 ModelBundle
impl RefUnwindSafe for ModelBundle
impl Send for ModelBundle
impl Sync for ModelBundle
impl Unpin for ModelBundle
impl UnsafeUnpin for ModelBundle
impl UnwindSafe for ModelBundle
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