mangadex_api/v5/user/follows/
group.rs1pub mod get;
2pub mod id;
3
4use crate::HttpClientRef;
5use get::FollowedGroupsBuilder;
6use id::IdEndpoint;
7
8use uuid::Uuid;
9
10create_endpoint_node! {
11 #[name] GroupEndpoint GroupEndpointMethods,
12 #[args] {
13 http_client : HttpClientRef,
14 },
15 #[methods] {
16 get() -> FollowedGroupsBuilder;
17 id(id: Uuid,) -> IdEndpoint;
18 }
19}
20
21impl GroupEndpointMethods for GroupEndpoint {
22 fn get(&self) -> FollowedGroupsBuilder {
23 FollowedGroupsBuilder::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}