mangadex_api/v5/report/
reasons.rs1pub mod category;
2use mangadex_api_types::ReportCategory;
3
4use crate::HttpClientRef;
5use category::CategoryEndpoint;
6
7#[derive(Clone, Debug)]
9pub struct ReasonsEndpoint {
10 http_client: HttpClientRef,
11}
12
13impl ReasonsEndpoint {
14 #[doc(hidden)]
15 pub(crate) fn new(http_client: HttpClientRef) -> Self {
16 Self { http_client }
17 }
18 pub fn category(&self, category: ReportCategory) -> CategoryEndpoint {
19 CategoryEndpoint::new(self.http_client.clone(), category)
20 }
21}