pub struct Work {
pub id: Uuid,
pub title: String,
pub original_language: Option<String>,
pub first_published: Option<String>,
pub created_at: DateTime<Utc>,
}Expand description
A Work groups multiple editions (Books) of the same creative work. E.g. “Dune” hardcover, paperback, and Kindle editions share one Work.
Fields§
§id: Uuid§title: String§original_language: Option<String>§first_published: Option<String>§created_at: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Work
impl<'de> Deserialize<'de> for Work
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 Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnsafeUnpin for Work
impl UnwindSafe for Work
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