mangadex_api/v5/at_home/server/
id.rs

1pub mod get;
2
3use crate::HttpClientRef;
4use uuid::Uuid;
5
6use get::GetAtHomeServerBuilder;
7
8create_endpoint_node! {
9    #[name] IdEndpoint IdEndpointMethods,
10    #[args] {
11        http_client: HttpClientRef,
12        id: Uuid,
13    },
14    #[methods] {
15        get() -> GetAtHomeServerBuilder;
16    }
17}
18
19impl IdEndpointMethods for IdEndpoint {
20    fn get(&self) -> GetAtHomeServerBuilder {
21        GetAtHomeServerBuilder::default()
22            .chapter_id(<&Self as Into<Uuid>>::into(self))
23            .http_client(<&Self as Into<HttpClientRef>>::into(self))
24    }
25}