mangadex_api/v5/manga/
read.rs

1use crate::HttpClientRef;
2
3pub mod get;
4
5use get::GetReadChaptersBuilder;
6
7#[derive(Debug)]
8pub struct ReadEndpoint {
9    http_client: HttpClientRef,
10}
11
12// TODO Add Deref for endpoint that have get(&self)
13
14impl ReadEndpoint {
15    #[doc(hidden)]
16    pub fn new(http_client: HttpClientRef) -> Self {
17        Self { http_client }
18    }
19    pub fn get(&self) -> GetReadChaptersBuilder {
20        GetReadChaptersBuilder::default().http_client(self.http_client.clone())
21    }
22}