+
+ pub async fn set_recipe_description_async(
+ &self,
+ recipe_id: i64,
+ description: &str,
+ ) -> Result<()> {
+ let self_copy = self.clone();
+ let description_copy = description.to_string();
+ combine_errors(
+ web::block(move || {
+ self_copy
+ .set_recipe_description(recipe_id, &description_copy)
+ .map_err(DBAsyncError::from)
+ })
+ .await,
+ )
+ }
+}