mangadex_api/v5/legacy/
mapping.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use crate::HttpClientRef;

pub mod post;

use post::LegacyIdMappingBuilder;

#[derive(Debug, Clone)]
pub struct MappingEndpoint {
    http_client: HttpClientRef,
}

impl MappingEndpoint {
    #[doc(hidden)]
    pub fn new(http_client: HttpClientRef) -> Self {
        Self { http_client }
    }
    pub fn post(&self) -> LegacyIdMappingBuilder {
        LegacyIdMappingBuilder::default().http_client(self.http_client.clone())
    }
}