[−][src]Struct libpaprika::Recipe
Fields
created: String
difficulty: String
photo_large: Option<Base64>
uid: Uuid
photo: Option<String>
categories: Vec<String>
notes: String
prep_time: String
cook_time: String
source: String
source_url: String
photo_data: Option<Base64>
total_time: String
name: String
ingredients: String
photos: Vec<RecipePhoto>
rating: u8
description: String
photo_hash: Option<Hash>
image_url: Option<Url>
nutritional_info: String
directions: String
hash: Hash
servings: 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,