reget 0.1.0

A simple recipe parser for html and json-ld
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub struct LdFields;

/// Constants for JSON-LD fields used in the recipe schema
impl LdFields {
    pub const TYPE: &'static str = "@type";
    pub const NAME: &'static str = "name";
    pub const TEXT: &'static str = "text";
    pub const AUTHOR: &'static str = "author";
    pub const DESCRIPTION: &'static str = "description";
    pub const RECIPE_INGREDIENT: &'static str = "recipeIngredient";
    pub const RECIPE_INSTRUCTIONS: &'static str = "recipeInstructions";
    pub const ITEM_LIST_ELEMENT: &'static str = "itemListElement";
}