mangadex_api/v5/manga/id/
aggregate.rs

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