hugging_face_client/api/
delete_collection_item.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize)]
5pub struct DeleteCollectionItemReq<'a> {
6 #[serde(skip_serializing)]
7 pub(crate) collection_slug: &'a str,
8
9 #[serde(skip_serializing)]
10 pub(crate) item_id: &'a str,
11}
12
13impl<'a> DeleteCollectionItemReq<'a> {
14 pub fn new(collection_slug: &'a str, item_id: &'a str) -> Self {
15 Self {
16 collection_slug,
17 item_id,
18 }
19 }
20}
21
22#[derive(Debug, Deserialize)]
24pub struct DeleteCollectionItemRes {
25 pub success: bool,
26}