mangadex_api/v5/legacy/mapping.rs
1use crate::HttpClientRef;
2
3pub mod post;
4
5use post::LegacyIdMappingBuilder;
6
7#[derive(Debug, Clone)]
8pub struct MappingEndpoint {
9 http_client: HttpClientRef,
10}
11
12impl MappingEndpoint {
13 #[doc(hidden)]
14 pub fn new(http_client: HttpClientRef) -> Self {
15 Self { http_client }
16 }
17 pub fn post(&self) -> LegacyIdMappingBuilder {
18 LegacyIdMappingBuilder::default().http_client(self.http_client.clone())
19 }
20}