mangadex_api/v5/
chapter.rspub mod get;
pub mod id;
use uuid::Uuid;
use crate::v5::chapter::get::ListChapterBuilder;
use crate::v5::chapter::id::IdEndpoint;
use crate::HttpClientRef;
#[derive(Debug)]
pub struct ChapterBuilder {
http_client: HttpClientRef,
}
impl ChapterBuilder {
#[doc(hidden)]
pub(crate) fn new(http_client: HttpClientRef) -> Self {
Self { http_client }
}
pub fn get(&self) -> ListChapterBuilder {
ListChapterBuilder::default().http_client(self.http_client.clone())
}
pub fn id(&self, id: Uuid) -> IdEndpoint {
IdEndpoint::new(self.http_client.clone(), id)
}
}