mangadex_api/v5/cover/
manga_id.rs1pub mod post;
2
3use crate::HttpClientRef;
4use post::UploadCoverBuilder;
5use uuid::Uuid;
6
7#[derive(Debug, Clone)]
8pub struct MangaIdEndpoint {
9 http_client: HttpClientRef,
10 manga_id: Uuid,
11}
12
13impl MangaIdEndpoint {
14 #[doc(hidden)]
15 pub fn new(http_client: HttpClientRef, manga_id: Uuid) -> Self {
16 Self {
17 http_client,
18 manga_id,
19 }
20 }
21 pub fn post(&self) -> UploadCoverBuilder {
22 UploadCoverBuilder::default()
23 .manga_id(self.manga_id)
24 .http_client(self.http_client.clone())
25 }
26}