mangadex_api/v5/user/follows/
manga.rs

1pub mod feed;
2pub mod get;
3pub mod id;
4
5use crate::HttpClientRef;
6
7use uuid::Uuid;
8
9use feed::FeedEndpoint;
10use get::FollowedMangaBuilder;
11use id::IdEndpoint;
12
13create_endpoint_node! {
14    #[name] MangaEndpoint MangaEndpointMethods,
15    #[agrs] {
16        http_client: HttpClientRef,
17    },
18    #[methods] {
19        feed() -> FeedEndpoint;
20        get() -> FollowedMangaBuilder;
21        id(id: Uuid,) -> IdEndpoint;
22    }
23}
24
25impl MangaEndpointMethods for MangaEndpoint {
26    fn feed(&self) -> FeedEndpoint {
27        FeedEndpoint::new(self.http_client.clone())
28    }
29
30    fn get(&self) -> FollowedMangaBuilder {
31        FollowedMangaBuilder::default().http_client(self.http_client.clone())
32    }
33
34    fn id(&self, id: Uuid) -> IdEndpoint {
35        IdEndpoint::new(self.http_client.clone(), id)
36    }
37}