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