mangadex_api/v5/
custom_list.rs1pub mod id;
6pub mod post;
7
8use uuid::Uuid;
9
10use crate::v5::custom_list::post::CreateCustomListBuilder;
11use crate::HttpClientRef;
12use id::IdEnpoint;
13
14#[derive(Debug)]
16pub struct CustomListBuilder {
17 http_client: HttpClientRef,
18}
19
20impl CustomListBuilder {
21 #[doc(hidden)]
22 pub(crate) fn new(http_client: HttpClientRef) -> Self {
23 Self { http_client }
24 }
25
26 pub fn post(&self) -> CreateCustomListBuilder {
30 CreateCustomListBuilder::default().http_client(self.http_client.clone())
31 }
32
33 pub fn id(&self, id: Uuid) -> IdEnpoint {
35 IdEnpoint::new(self.http_client.clone(), id)
36 }
37}