pub struct HfFile {
pub path: String,
pub size: Option<u64>,
}Expand description
One file in a HuggingFace repo, projected into the fields the picker
needs. size is the file’s byte count when known (HF’s tree endpoint
reports it for every regular file; the field stays Option so future
API quirks don’t break the picker).
Fields§
§path: String§size: Option<u64>Trait Implementations§
impl StructuralPartialEq for HfFile
Auto Trait Implementations§
impl Freeze for HfFile
impl RefUnwindSafe for HfFile
impl Send for HfFile
impl Sync for HfFile
impl Unpin for HfFile
impl UnsafeUnpin for HfFile
impl UnwindSafe for HfFile
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