Function vit_servicing_station_lib::db::queries::api_tokens::insert_token
source · pub async fn insert_token(
token: &ApiToken,
pool: &DbConnectionPool
) -> Result<(), HandleError>
Expand description
Insert a token asynchronously. This method is a wrapper over insert_data_token
that uses the same
approach synchronously for a complete formed APITokenData object related to the database model.