[][src]Struct libpaprika::Recipe

pub struct Recipe {
    pub created: String,
    pub difficulty: String,
    pub photo_large: Option<Base64>,
    pub uid: Uuid,
    pub photo: Option<String>,
    pub categories: Vec<String>,
    pub notes: String,
    pub prep_time: String,
    pub cook_time: String,
    pub source: String,
    pub source_url: String,
    pub photo_data: Option<Base64>,
    pub total_time: String,
    pub name: String,
    pub ingredients: String,
    pub photos: Vec<RecipePhoto>,
    pub rating: u8,
    pub description: String,
    pub photo_hash: Option<Hash>,
    pub image_url: Option<Url>,
    pub nutritional_info: String,
    pub directions: String,
    pub hash: Hash,
    pub servings: String,
}

Fields

created: Stringdifficulty: Stringphoto_large: Option<Base64>uid: Uuidphoto: Option<String>categories: Vec<String>notes: Stringprep_time: Stringcook_time: Stringsource: Stringsource_url: Stringphoto_data: Option<Base64>total_time: Stringname: Stringingredients: Stringphotos: Vec<RecipePhoto>rating: u8description: Stringphoto_hash: Option<Hash>image_url: Option<Url>nutritional_info: Stringdirections: Stringhash: Hashservings: String

Methods

impl Recipe[src]

pub fn from_reader<R: Read>(rdr: R) -> Result<Recipe, Error>[src]

pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Recipe, Error>[src]

pub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Trait Implementations

impl Debug for Recipe[src]

impl<'de> Deserialize<'de> for Recipe[src]

impl Serialize for Recipe[src]

Auto Trait Implementations

impl RefUnwindSafe for Recipe

impl Send for Recipe

impl Sync for Recipe

impl Unpin for Recipe

impl UnwindSafe for Recipe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.