pub struct HFSibling {
pub rfilename: String,
pub bytes: Option<i64>,
pub sha256: Option<String>,
}Expand description
One file listed in a Hugging Face repo, as returned by the hub API.
Fields§
§rfilename: StringThe file’s path within the repo.
bytes: Option<i64>The file’s size in bytes, if the listing reported it.
sha256: Option<String>The LFS object’s SHA-256 (lfs.sha256), when the file is stored in LFS. The
download path uses it as the content-addressed blob name and to verify the
bytes; plain (non-LFS) files don’t report one.
Implementations§
Trait Implementations§
impl Eq for HFSibling
impl StructuralPartialEq for HFSibling
Auto Trait Implementations§
impl Freeze for HFSibling
impl RefUnwindSafe for HFSibling
impl Send for HFSibling
impl Sync for HFSibling
impl Unpin for HFSibling
impl UnsafeUnpin for HFSibling
impl UnwindSafe for HFSibling
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