Docs.rs
  • hugging-face-client-0.3.0
    • hugging-face-client 0.3.0
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • dlzht
    • Dependencies
      • reqwest ^0.12 normal
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • serde_repr ^0.1.20 normal
      • snafu ^0.8.5 normal
      • serde_urlencoded ^0.7.1 dev
      • tokio ^1.44 dev
    • Versions
    • 44.93% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

hugging_face_client0.3.0

Module api

Module Items

  • Structs
  • Enums
  • Type Aliases

In crate hugging_face_client

hugging_face_client

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§

CreateRepoReq
Request of crate::client::Client::create_repo
CreateRepoRes
Response of crate::client::Client::create_repo
DeleteRepoReq
Request of crate::client::Client::delete_repo
FailureRes
Error response format of Hugging Face Hub API
GetDatasetReq
Request of crate::client::Client::get_dataset
GetDatasetTagRes
Response of crate::client::Client::get_dataset_tags
GetModelReq
Request of crate::client::Client::get_model
GetModelTagsRes
Response of crate::client::Client::get_model_tags
GetSpaceReq
Request of crate::client::Client::get_space
SearchReq

Enums§

HuggingFaceRes
Global response format of Hugging Face Hub API

Type Aliases§

GetDatasetRes
Response of crate::client::Client::get_dataset
GetModelRes
Response of crate::client::Client::get_model
GetSpaceRes
Response of crate::client::Client::get_space
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