pub struct NewModelFile {
pub model_id: i64,
pub file_path: String,
pub file_index: i32,
pub expected_size: i64,
pub hf_oid: Option<String>,
}Expand description
A model file entry to be inserted into the system (no ID yet).
Fields§
§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.
Implementations§
Trait Implementations§
Source§impl Clone for NewModelFile
impl Clone for NewModelFile
Source§fn clone(&self) -> NewModelFile
fn clone(&self) -> NewModelFile
Returns a duplicate of the value. Read more
1.0.0 · 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 NewModelFile
impl Debug for NewModelFile
Source§impl<'de> Deserialize<'de> for NewModelFile
impl<'de> Deserialize<'de> for NewModelFile
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 NewModelFile
impl RefUnwindSafe for NewModelFile
impl Send for NewModelFile
impl Sync for NewModelFile
impl Unpin for NewModelFile
impl UnwindSafe for NewModelFile
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