use conjure_http::endpoint;
#[conjure_http::conjure_endpoints(
name = "InternalUserCreationService",
use_legacy_error_serialization
)]
pub trait InternalUserCreationService {
#[endpoint(
method = PUT,
path = "/user-creation/v1/database",
name = "ensureDatabaseUserExists"
)]
fn ensure_database_user_exists(
&self,
#[auth]
auth_: conjure_object::BearerToken,
) -> Result<(), conjure_http::private::Error>;
}
#[conjure_http::conjure_endpoints(
name = "InternalUserCreationService",
use_legacy_error_serialization
)]
pub trait AsyncInternalUserCreationService {
#[endpoint(
method = PUT,
path = "/user-creation/v1/database",
name = "ensureDatabaseUserExists"
)]
async fn ensure_database_user_exists(
&self,
#[auth]
auth_: conjure_object::BearerToken,
) -> Result<(), conjure_http::private::Error>;
}
#[conjure_http::conjure_endpoints(
name = "InternalUserCreationService",
use_legacy_error_serialization,
local
)]
pub trait LocalAsyncInternalUserCreationService {
#[endpoint(
method = PUT,
path = "/user-creation/v1/database",
name = "ensureDatabaseUserExists"
)]
async fn ensure_database_user_exists(
&self,
#[auth]
auth_: conjure_object::BearerToken,
) -> Result<(), conjure_http::private::Error>;
}