pub struct CleanupSource {
pub listing: String,
pub listing_tail: String,
pub tags: Vec<String>,
pub blobs_base: String,
pub files_base: String,
}Expand description
Where the cleanup feed is enumerated: the Hub’s models listing, with the filters that are the HUB’s as query parameters, and the per-repo blobs endpoint that answers with the files.
Fields§
§listing: StringThe listing up to the first tag: <listing><tag><listing_tail>.
listing_tail: StringWhat follows a tag in the query: the gguf filter, the order and the page size.
The tags a cleanup model’s repo carries. One filter= per call
narrows by AND, so the union is fetched tag by tag and merged - a
model whose card says punctuation and never says
text-normalization is a cleanup candidate just the same.
blobs_base: StringURL a repo id is appended to for its blobs: <blobs_base><id>?blobs=true.
files_base: StringURL a repo id and file are appended to for the file itself:
<files_base><id>/resolve/main/<file>.
Trait Implementations§
Source§impl Clone for CleanupSource
impl Clone for CleanupSource
Source§impl Debug for CleanupSource
impl Debug for CleanupSource
Auto Trait Implementations§
impl Freeze for CleanupSource
impl RefUnwindSafe for CleanupSource
impl Send for CleanupSource
impl Sync for CleanupSource
impl Unpin for CleanupSource
impl UnsafeUnpin for CleanupSource
impl UnwindSafe for CleanupSource
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