mangadex_api/v5/user/follows/
user.rs

1pub mod get;
2pub mod id;
3
4use get::FollowedUsersBuilder;
5use id::IdEndpoint;
6
7use crate::HttpClientRef;
8use uuid::Uuid;
9
10create_endpoint_node! {
11    #[name] UserEndpoint UserEndpointMethods,
12    #[args] {
13        http_client: HttpClientRef,
14    },
15    #[methods] {
16        get() -> FollowedUsersBuilder;
17        id(id: Uuid,) -> IdEndpoint;
18    }
19}
20
21impl UserEndpointMethods for UserEndpoint {
22    fn get(&self) -> FollowedUsersBuilder {
23        FollowedUsersBuilder::default().http_client(self.http_client.clone())
24    }
25
26    fn id(&self, id: Uuid) -> IdEndpoint {
27        IdEndpoint::new(self.http_client.clone(), id)
28    }
29}