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