1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
mod create_update_for_manga;
mod delete_for_manga;
mod get_your_manga_ratings;
use crate::v5::rating::create_update_for_manga::CreateUpdateMangaRatingBuilder;
use crate::v5::rating::delete_for_manga::DeleteMangaRatingBuilder;
use crate::v5::rating::get_your_manga_ratings::GetYourMangaRatingsBuilder;
use crate::HttpClientRef;
#[derive(Clone, Debug)]
pub struct RatingBuilder {
http_client: HttpClientRef,
}
impl RatingBuilder {
#[doc(hidden)]
pub(crate) fn new(http_client: HttpClientRef) -> Self {
Self { http_client }
}
pub fn delete_for_manga(&self) -> DeleteMangaRatingBuilder {
DeleteMangaRatingBuilder::default().http_client(self.http_client.clone())
}
pub fn get_your_manga_ratings(&self) -> GetYourMangaRatingsBuilder {
GetYourMangaRatingsBuilder::default().http_client(self.http_client.clone())
}
pub fn upsert_for_manga(&self) -> CreateUpdateMangaRatingBuilder {
CreateUpdateMangaRatingBuilder::default().http_client(self.http_client.clone())
}
}