mangadex_api/v5/statistics/
chapter.rs1use uuid::Uuid;
2
3use crate::HttpClientRef;
4
5use self::get::FindChapterStatisticsBuilder;
6use self::id::IdEndpoint;
7
8pub mod get;
9pub mod id;
10
11#[derive(Clone, Debug)]
13pub struct ChapterEndpoint {
14 http_client: HttpClientRef,
15}
16
17impl ChapterEndpoint {
18 #[doc(hidden)]
19 pub(crate) fn new(http_client: HttpClientRef) -> Self {
20 Self { http_client }
21 }
22
23 pub fn get(&self) -> FindChapterStatisticsBuilder {
24 FindChapterStatisticsBuilder::default().http_client(self.http_client.clone())
25 }
26 pub fn id(&self, id: Uuid) -> IdEndpoint {
27 IdEndpoint::new(self.http_client.clone(), id)
28 }
29}