mangadex_api/v5/manga/
draft.rs

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