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