mangadex_api/v5/
statistics.rs1pub mod chapter;
6pub mod group;
7pub mod manga;
8
9use crate::HttpClientRef;
10
11use self::{chapter::ChapterEndpoint, group::GroupEndpoint, manga::MangaEndpoint};
12
13#[derive(Clone, Debug)]
15pub struct StatisticsBuilder {
16 http_client: HttpClientRef,
17}
18
19impl StatisticsBuilder {
20 #[doc(hidden)]
21 pub(crate) fn new(http_client: HttpClientRef) -> Self {
22 Self { http_client }
23 }
24 pub fn chapter(&self) -> ChapterEndpoint {
25 ChapterEndpoint::new(self.http_client.clone())
26 }
27 pub fn group(&self) -> GroupEndpoint {
28 GroupEndpoint::new(self.http_client.clone())
29 }
30 pub fn manga(&self) -> MangaEndpoint {
31 MangaEndpoint::new(self.http_client.clone())
32 }
33}