pub struct Shelf {
pub id: Uuid,
pub name: String,
pub is_smart: bool,
pub smart_filter: Option<String>,
pub created_at: DateTime<Utc>,
}Expand description
A user-defined shelf for organizing books (e.g. “Favorites”, “To Re-read”).
Smart shelves have is_smart = true and a smart_filter that dynamically matches books.
Fields§
§id: Uuid§name: String§is_smart: bool§smart_filter: Option<String>§created_at: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shelf
impl<'de> Deserialize<'de> for Shelf
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
Auto Trait Implementations§
impl Freeze for Shelf
impl RefUnwindSafe for Shelf
impl Send for Shelf
impl Sync for Shelf
impl Unpin for Shelf
impl UnsafeUnpin for Shelf
impl UnwindSafe for Shelf
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