nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
use conjure_http::endpoint;
/// Exposes a simple endpoints for checking whether or not persistent compute is enabled.
#[conjure_http::conjure_endpoints(
    name = "PersistentComputeService",
    use_legacy_error_serialization
)]
pub trait PersistentComputeService {
    /// Simple "ping" like endpoint to see if the service is enabled (and available).
    #[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,
    >;
}
/// Exposes a simple endpoints for checking whether or not persistent compute is enabled.
#[conjure_http::conjure_endpoints(
    name = "PersistentComputeService",
    use_legacy_error_serialization
)]
pub trait AsyncPersistentComputeService {
    /// Simple "ping" like endpoint to see if the service is enabled (and available).
    #[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,
    >;
}
/// Exposes a simple endpoints for checking whether or not persistent compute is enabled.
#[conjure_http::conjure_endpoints(
    name = "PersistentComputeService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncPersistentComputeService {
    /// Simple "ping" like endpoint to see if the service is enabled (and available).
    #[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,
    >;
}