Skip to main content

upload_recipe

Function upload_recipe 

Source
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

  • token a login token from login()
  • recipe a populated Recipe, with or without a uid (for updating or creating a new recipe)