pub struct HfFileInfo {
pub path: String,
pub size: u64,
pub is_gguf: bool,
}Expand description
Information about a file in a HuggingFace repository.
Fields§
§path: StringPath relative to repository root
size: u64File size in bytes
is_gguf: boolWhether this is a GGUF file
Trait Implementations§
Source§impl Clone for HfFileInfo
impl Clone for HfFileInfo
Source§fn clone(&self) -> HfFileInfo
fn clone(&self) -> HfFileInfo
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 HfFileInfo
impl Debug for HfFileInfo
Source§impl<'de> Deserialize<'de> for HfFileInfo
impl<'de> Deserialize<'de> for HfFileInfo
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 HfFileInfo
impl RefUnwindSafe for HfFileInfo
impl Send for HfFileInfo
impl Sync for HfFileInfo
impl Unpin for HfFileInfo
impl UnwindSafe for HfFileInfo
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