bw_web_api_rs/endpoints/
classic_files_global_maps_1v1.rs

1use crate::endpoints::Endpoint;
2use crate::error::ApiError;
3use crate::models::classic_files_global_maps_1v1::GlobalMaps1v1;
4
5pub struct GlobalMaps1v1Endpoint;
6
7impl GlobalMaps1v1Endpoint {
8    pub fn new() -> Self {
9        Self
10    }
11}
12
13impl Endpoint for GlobalMaps1v1Endpoint {
14    type Request = ();
15    type Response = GlobalMaps1v1;
16
17    fn endpoint(&self) -> String {
18        "/web-api/v1/file-set/classic.files.global.maps-1v1".to_string()
19    }
20}
21
22impl crate::client::ApiClient {
23    /// Get global 1v1 maps file set
24    ///
25    /// Endpoint: /web-api/v1/file-set/classic.files.global.maps-1v1
26    pub async fn get_global_maps_1v1(&self) -> Result<GlobalMaps1v1, ApiError> {
27        let endpoint = GlobalMaps1v1Endpoint::new();
28        self.request(&endpoint, &()).await
29    }
30}