mangadex_api/v5/user/follows/
list.rs

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