mangadex_api/v5/manga/id/
follow.rs1pub mod delete;
2pub mod post;
3
4use crate::HttpClientRef;
5
6use delete::UnfollowMangaBuilder;
7use post::FollowMangaBuilder;
8use uuid::Uuid;
9
10#[derive(Debug)]
11pub struct FollowEndpoint {
12 http_client: HttpClientRef,
13 id: Uuid,
14}
15
16impl FollowEndpoint {
17 #[doc(hidden)]
18 pub fn new(http_client: HttpClientRef, id: Uuid) -> Self {
19 Self { http_client, id }
20 }
21 pub fn post(&self) -> FollowMangaBuilder {
22 FollowMangaBuilder::default()
23 .manga_id(self.id)
24 .http_client(self.http_client.clone())
25 }
26 pub fn delete(&self) -> UnfollowMangaBuilder {
27 UnfollowMangaBuilder::default()
28 .manga_id(self.id)
29 .http_client(self.http_client.clone())
30 }
31}