mangadex_api/v5/manga/
manga_id.rs

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