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