Function paprika_api::api::upload_recipe [−][src]
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 fromlogin()
recipe
a populated Recipe, with or without auid
(for updating or creating a new recipe)