Module api

Module api 

Source
Expand description

Request and response

Hugging Face has open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos.

Structs§

ArxivPaperReq
Request of crate::client::Client::arxiv_paper
ArxivReposReq
Request of crate::client::Client::arxiv_repos
ArxivReposRes
Response of crate::client::Client::arxiv_repos
CreateCollectionItemReq
Request of crate::client::Client::create_collection_item
CreateCollectionReq
Request of crate::client::Client::create_collection
CreateRepoReq
Request of crate::client::Client::create_repo
CreateRepoRes
Response of crate::client::Client::create_repo
DeleteCollectionItemReq
Request of crate::client::Client::delete_collection_item
DeleteCollectionItemRes
Response of crate::client::Client::delete_collection_item
DeleteCollectionReq
Request of crate::client::Client::delete_collection
DeleteCollectionRes
Response of crate::client::Client::delete_collection
DeleteRepoReq
Request of crate::client::Client::delete_repo
DownloadParquetReq
Request of crate::client::Client::download_parquet
DownloadParquetRes
FailureRes
Error response format of Hugging Face Hub API
GetCollectionReq
Request of crate::client::Client::get_collection
GetCollectionsReq
Request of crate::client::Client::get_collections
GetDatasetReq
Request of crate::client::Client::get_dataset
GetDatasetTagRes
Response of crate::client::Client::get_dataset_tags
GetMembersReq
Request of crate::client::Client::get_members
GetModelReq
Request of crate::client::Client::get_model
GetModelTagsRes
Response of crate::client::Client::get_model_tags
GetParquetReq
Request of crate::client::Client::get_parquet
GetSpaceReq
Request of crate::client::Client::get_space
ModifyCollectionItemReq
Request of crate::client::Client::modify_collection_item
ModifyCollectionItemRes
Response of crate::client::Client::modify_collection_item
ModifyCollectionReq
Request of crate::client::Client::modify_collection
ModifyCollectionRes
Response of crate::client::Client::modify_collection
MoveRepoReq
Request of crate::client::Client::move_repo
SearchReq

Enums§

GetParquetRes
Response of crate::client::Client::get_parquet
HuggingFaceRes
Global response format of Hugging Face Hub API

Type Aliases§

ArxivDailyRes
Request of crate::client::Client::arxiv_daily
ArxivPaperRes
Request of crate::client::Client::arxiv_paper
CreateCollectionItemRes
Response of crate::client::Client::create_collection_item
GetCollectionRes
Response of crate::client::Client::get_collection, crate::client::Client::create_collection
GetCollectionsRes
Response of crate::client::Client::get_collections
GetDatasetRes
Response of crate::client::Client::get_dataset
GetMembersRes
Response of crate::client::Client::get_members
GetMetricsRes
Response of crate::client::Client::get_metrics
GetModelRes
Response of crate::client::Client::get_model
GetSpaceRes
Response of crate::client::Client::get_space
GetUserInfoRes
SearchDatasetReq
Request of crate::client::Client::search_dataset
SearchDatasetRes
Response of crate::client::Client::search_dataset
SearchModelReq
Request of crate::client::Client::search_model
SearchModelRes
Response of crate::client::Client::search_model
SearchSpaceReq
Request of crate::client::Client::search_space
SearchSpaceRes
Response of crate::client::Client::search_space