pub trait AsyncInternalUserCreationService {
// Required method
fn ensure_database_user_exists(
&self,
auth_: BearerToken,
) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description
Internal service responsible for handling creation of new users.
Required Methods§
Sourcefn ensure_database_user_exists(
&self,
auth_: BearerToken,
) -> impl Future<Output = Result<(), Error>> + Send
fn ensure_database_user_exists( &self, auth_: BearerToken, ) -> impl Future<Output = Result<(), Error>> + Send
Ensures that the user corresponding to the auth header provided exists in the database. Will do nothing if the user already exists.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.