mangadex_api/v5/manga/manga_id/relation/
id.rs

1pub mod delete;
2
3use crate::HttpClientRef;
4
5use uuid::Uuid;
6
7use delete::DeleteMangaRelationBuilder;
8
9#[derive(Debug)]
10pub struct RelationIdEndpoint {
11    http_client: HttpClientRef,
12    manga_id: Uuid,
13    id: Uuid,
14}
15
16impl RelationIdEndpoint {
17    #[doc(hidden)]
18    pub fn new(http_client: HttpClientRef, manga_id: Uuid, id: Uuid) -> Self {
19        Self {
20            http_client,
21            manga_id,
22            id,
23        }
24    }
25    pub fn delete(&self) -> DeleteMangaRelationBuilder {
26        DeleteMangaRelationBuilder::default()
27            .manga_id(self.manga_id)
28            .relation_id(self.id)
29            .http_client(self.http_client.clone())
30    }
31}