#[non_exhaustive]pub struct StoredModel {
pub id: String,
pub files: Vec<String>,
pub size: u64,
pub complete: bool,
}Expand description
A model file (or split model) in the store, from ModelStore::list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe file stem without the split suffix, as in RepoModel::id.
files: Vec<String>Paths relative to the store directory, first part first.
size: u64§complete: boolEvery part of a split model is there.
Trait Implementations§
Source§impl Clone for StoredModel
impl Clone for StoredModel
Source§impl Debug for StoredModel
impl Debug for StoredModel
Source§impl<'de> Deserialize<'de> for StoredModel
impl<'de> Deserialize<'de> for StoredModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StoredModel
Source§impl PartialEq for StoredModel
impl PartialEq for StoredModel
Source§impl Serialize for StoredModel
impl Serialize for StoredModel
impl StructuralPartialEq for StoredModel
Auto Trait Implementations§
impl Forget for StoredModel
impl Freeze for StoredModel
impl Move for StoredModel
impl RefUnwindSafe for StoredModel
impl Send for StoredModel
impl Sync for StoredModel
impl Unpin for StoredModel
impl UnsafeUnpin for StoredModel
impl UnwindSafe for StoredModel
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