Skip to main content

Mountain/Air/AirServiceTypesStub/
AirClientType.rs

1
2//! Stub `AirClient` type used while the `AirIntegration` feature is off.
3//! Every method returns the same "feature not implemented" error.
4//!
5//! ## Planned
6//!
7//! Replace with the real `AirLibrary` client when the feature lands.
8
9use crate::Air::AirServiceTypesStub::{
10	ApplyUpdateRequest,
11	ApplyUpdateResponse,
12	AuthenticationRequest,
13	AuthenticationResponse,
14	DownloadFileResponse,
15	DownloadRequest,
16	IndexFilesResponse,
17	IndexRequest,
18	MetricsRequest,
19	MetricsResponse,
20	SearchFilesResponse,
21	SearchRequest,
22	StatusRequest,
23	StatusResponse,
24	UpdateCheckRequest,
25	UpdateCheckResponse,
26};
27
28#[derive(Debug, Clone)]
29pub struct Struct;
30
31impl Struct {
32	pub async fn new(_Address:&str) -> Result<Self, String> {
33		Err("AirIntegration feature is not implemented yet".to_string())
34	}
35
36	pub async fn CheckForUpdates(
37		&self,
38
39		_Request:UpdateCheckRequest::Struct,
40	) -> Result<UpdateCheckResponse::Struct, String> {
41		Err("AirIntegration feature is not implemented yet".to_string())
42	}
43
44	pub async fn DownloadFile(&self, _Request:DownloadRequest::Struct) -> Result<DownloadFileResponse::Struct, String> {
45		Err("AirIntegration feature is not implemented yet".to_string())
46	}
47
48	pub async fn ApplyUpdate(
49		&self,
50
51		_Request:ApplyUpdateRequest::Struct,
52	) -> Result<ApplyUpdateResponse::Struct, String> {
53		Err("AirIntegration feature is not implemented yet".to_string())
54	}
55
56	pub async fn AuthenticateUser(
57		&self,
58
59		_Request:AuthenticationRequest::Struct,
60	) -> Result<AuthenticationResponse::Struct, String> {
61		Err("AirIntegration feature is not implemented yet".to_string())
62	}
63
64	pub async fn IndexFiles(&self, _Request:IndexRequest::Struct) -> Result<IndexFilesResponse::Struct, String> {
65		Err("AirIntegration feature is not implemented yet".to_string())
66	}
67
68	pub async fn SearchFiles(&self, _Request:SearchRequest::Struct) -> Result<SearchFilesResponse::Struct, String> {
69		Err("AirIntegration feature is not implemented yet".to_string())
70	}
71
72	pub async fn GetStatus(&self, _Request:StatusRequest::Struct) -> Result<StatusResponse::Struct, String> {
73		Err("AirIntegration feature is not implemented yet".to_string())
74	}
75
76	pub async fn GetMetrics(&self, _Request:MetricsRequest::Struct) -> Result<MetricsResponse::Struct, String> {
77		Err("AirIntegration feature is not implemented yet".to_string())
78	}
79}