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.