mangadex_api/v5/user/
follows.rs

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
pub mod group;
pub mod list;
pub mod manga;
pub mod user;

use group::GroupEndpoint;
use list::ListEndpoint;
use manga::MangaEndpoint;
use user::UserEndpoint;

use crate::HttpClientRef;

create_endpoint_node! {
    #[name] FollowsEndpoint FollowsEndpointMethods,
    #[args] {
        http_client: HttpClientRef,
    },
    #[methods] {
        group() -> GroupEndpoint;
        list() -> ListEndpoint;
        manga() -> MangaEndpoint;
        user() -> UserEndpoint;
    }
}

impl FollowsEndpointMethods for FollowsEndpoint {
    fn group(&self) -> GroupEndpoint {
        GroupEndpoint::new(self.http_client.clone())
    }

    fn list(&self) -> ListEndpoint {
        ListEndpoint::new(self.http_client.clone())
    }

    fn manga(&self) -> MangaEndpoint {
        MangaEndpoint::new(self.http_client.clone())
    }

    fn user(&self) -> UserEndpoint {
        UserEndpoint::new(self.http_client.clone())
    }
}