Skip to main content

Mountain/Air/AirServiceTypesStub/
AirClientType.rs

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