mangadex_api/v5/user/
follows.rs1pub mod group;
2pub mod list;
3pub mod manga;
4pub mod user;
5
6use group::GroupEndpoint;
7use list::ListEndpoint;
8use manga::MangaEndpoint;
9use user::UserEndpoint;
10
11use crate::HttpClientRef;
12
13create_endpoint_node! {
14 #[name] FollowsEndpoint FollowsEndpointMethods,
15 #[args] {
16 http_client: HttpClientRef,
17 },
18 #[methods] {
19 group() -> GroupEndpoint;
20 list() -> ListEndpoint;
21 manga() -> MangaEndpoint;
22 user() -> UserEndpoint;
23 }
24}
25
26impl FollowsEndpointMethods for FollowsEndpoint {
27 fn group(&self) -> GroupEndpoint {
28 GroupEndpoint::new(self.http_client.clone())
29 }
30
31 fn list(&self) -> ListEndpoint {
32 ListEndpoint::new(self.http_client.clone())
33 }
34
35 fn manga(&self) -> MangaEndpoint {
36 MangaEndpoint::new(self.http_client.clone())
37 }
38
39 fn user(&self) -> UserEndpoint {
40 UserEndpoint::new(self.http_client.clone())
41 }
42}