pub async fn upload_recipe(
token: &str,
recipe: &mut Recipe,
) -> Result<bool, Box<dyn Error>>Expand description
Uploads a new recipe (when uid == “”) or updates an existing one (when uid exists in database already) #arguments
tokena login token fromlogin()recipea populated Recipe, with or without auid(for updating or creating a new recipe)