hugging_face_client/api/
delete_collection.rs

1use serde::{Deserialize, Serialize};
2
3/// Request of [`crate::client::Client::delete_collection`]
4#[derive(Debug, Serialize)]
5pub struct DeleteCollectionReq<'a> {
6  pub(crate) slug: &'a str,
7}
8
9impl<'a> DeleteCollectionReq<'a> {
10  pub fn new(slug: &'a str) -> DeleteCollectionReq<'a> {
11    DeleteCollectionReq { slug }
12  }
13}
14
15/// Response of [`crate::client::Client::delete_collection`]
16#[derive(Debug, Deserialize)]
17pub struct DeleteCollectionRes {
18  pub success: bool,
19}