pub struct ModelFile {
pub id: i64,
pub model_id: i64,
pub file_path: String,
pub file_index: i32,
pub expected_size: i64,
pub hf_oid: Option<String>,
pub last_verified_at: Option<DateTime<Utc>>,
}Expand description
Represents a single file (shard) belonging to a model.
This tracks per-file metadata including OIDs for verification and update detection. Models can have multiple files (sharded models) or a single file.
Fields§
§id: i64Database ID of this model file entry.
model_id: i64ID of the parent model.
file_path: StringRelative path to the file within the model directory.
file_index: i32Index of this file in the shard sequence (0 for single-file models).
expected_size: i64Expected file size in bytes (from HuggingFace API).
hf_oid: Option<String>HuggingFace OID (Git LFS SHA256 hash) for this file.
last_verified_at: Option<DateTime<Utc>>UTC timestamp of when this file was last verified.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelFile
impl<'de> Deserialize<'de> for ModelFile
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
Auto Trait Implementations§
impl Freeze for ModelFile
impl RefUnwindSafe for ModelFile
impl Send for ModelFile
impl Sync for ModelFile
impl Unpin for ModelFile
impl UnwindSafe for ModelFile
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