pub struct UserBook<'a> {Show 14 fields
pub authors: CowStr<'a>,
pub cover: Option<CowStr<'a>>,
pub created_at: Datetime,
pub description: Option<CowStr<'a>>,
pub finished_at: Option<Datetime>,
pub hive_id: CowStr<'a>,
pub rating: Option<i64>,
pub review: Option<CowStr<'a>>,
pub stars: Option<i64>,
pub started_at: Option<Datetime>,
pub status: Option<CowStr<'a>>,
pub thumbnail: CowStr<'a>,
pub title: CowStr<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
The authors of the book (tab separated)
cover: Option<CowStr<'a>>Cover image of the book
created_at: Datetime§description: Option<CowStr<'a>>Book description/summary
finished_at: Option<Datetime>The date the user finished reading the book
hive_id: CowStr<'a>The book’s hive id, used to correlate user’s books with the hive
rating: Option<i64>Average rating (0-1000)
review: Option<CowStr<'a>>The book’s review
stars: Option<i64>Number of stars given to the book (1-10) which will be mapped to 1-5 stars
started_at: Option<Datetime>The date the user started reading the book
status: Option<CowStr<'a>>§thumbnail: CowStr<'a>Cover image of the book
title: CowStr<'a>The title of the book
extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for UserBook<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UserBook<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> IntoStatic for UserBook<'a>
impl<'a> IntoStatic for UserBook<'a>
impl<'a> Eq for UserBook<'a>
impl<'a> StructuralPartialEq for UserBook<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserBook<'a>
impl<'a> RefUnwindSafe for UserBook<'a>
impl<'a> Send for UserBook<'a>
impl<'a> Sync for UserBook<'a>
impl<'a> Unpin for UserBook<'a>
impl<'a> UnwindSafe for UserBook<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.