use conjure_http::endpoint;
#[conjure_http::conjure_endpoints(
name = "PersistentComputeService",
use_legacy_error_serialization
)]
pub trait PersistentComputeService {
#[endpoint(
method = GET,
path = "/persistent-compute/enabled",
name = "isEnabled",
produces = conjure_http::server::StdResponseSerializer
)]
fn is_enabled(
&self,
#[auth]
auth_: conjure_object::BearerToken,
) -> Result<
super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
conjure_http::private::Error,
>;
}
#[conjure_http::conjure_endpoints(
name = "PersistentComputeService",
use_legacy_error_serialization
)]
pub trait AsyncPersistentComputeService {
#[endpoint(
method = GET,
path = "/persistent-compute/enabled",
name = "isEnabled",
produces = conjure_http::server::StdResponseSerializer
)]
async fn is_enabled(
&self,
#[auth]
auth_: conjure_object::BearerToken,
) -> Result<
super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
conjure_http::private::Error,
>;
}
#[conjure_http::conjure_endpoints(
name = "PersistentComputeService",
use_legacy_error_serialization,
local
)]
pub trait LocalAsyncPersistentComputeService {
#[endpoint(
method = GET,
path = "/persistent-compute/enabled",
name = "isEnabled",
produces = conjure_http::server::StdResponseSerializer
)]
async fn is_enabled(
&self,
#[auth]
auth_: conjure_object::BearerToken,
) -> Result<
super::super::super::super::super::objects::persistent::compute::api::IsEnabledResponse,
conjure_http::private::Error,
>;
}