nominal_api/conjure/endpoints/persistent/compute/api/
persistent_compute_service.rs1use conjure_http::endpoint;
2#[conjure_http::conjure_endpoints(
4 name = "PersistentComputeService",
5 use_legacy_error_serialization
6)]
7pub trait PersistentComputeService {
8 #[endpoint(
10 method = GET,
11 path = "/persistent-compute/enabled",
12 name = "isEnabled",
13 produces = conjure_http::server::StdResponseSerializer
14 )]
15 fn is_enabled(
16 &self,
17 #[auth]
18 auth_: conjure_object::BearerToken,
19 ) -> Result<
20 super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
21 conjure_http::private::Error,
22 >;
23}
24#[conjure_http::conjure_endpoints(
26 name = "PersistentComputeService",
27 use_legacy_error_serialization
28)]
29pub trait AsyncPersistentComputeService {
30 #[endpoint(
32 method = GET,
33 path = "/persistent-compute/enabled",
34 name = "isEnabled",
35 produces = conjure_http::server::StdResponseSerializer
36 )]
37 async fn is_enabled(
38 &self,
39 #[auth]
40 auth_: conjure_object::BearerToken,
41 ) -> Result<
42 super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
43 conjure_http::private::Error,
44 >;
45}
46#[conjure_http::conjure_endpoints(
48 name = "PersistentComputeService",
49 use_legacy_error_serialization,
50 local
51)]
52pub trait LocalAsyncPersistentComputeService {
53 #[endpoint(
55 method = GET,
56 path = "/persistent-compute/enabled",
57 name = "isEnabled",
58 produces = conjure_http::server::StdResponseSerializer
59 )]
60 async fn is_enabled(
61 &self,
62 #[auth]
63 auth_: conjure_object::BearerToken,
64 ) -> Result<
65 super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
66 conjure_http::private::Error,
67 >;
68}