mangadex_api/v5/
custom_list.rspub mod id;
pub mod post;
use uuid::Uuid;
use crate::v5::custom_list::post::CreateCustomListBuilder;
use crate::HttpClientRef;
use id::IdEnpoint;
#[derive(Debug)]
pub struct CustomListBuilder {
http_client: HttpClientRef,
}
impl CustomListBuilder {
#[doc(hidden)]
pub(crate) fn new(http_client: HttpClientRef) -> Self {
Self { http_client }
}
pub fn post(&self) -> CreateCustomListBuilder {
CreateCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn id(&self, id: Uuid) -> IdEnpoint {
IdEnpoint::new(self.http_client.clone(), id)
}
}