pub struct ReadingProgress {
pub id: Uuid,
pub book_id: Uuid,
pub session_id: Option<Uuid>,
pub progress_type: ProgressType,
pub value: i32,
pub note: Option<String>,
pub logged_at: DateTime<Utc>,
pub created_at: DateTime<Utc>,
}Expand description
A timestamped reading progress entry.
Fields§
§id: Uuid§book_id: Uuid§session_id: Option<Uuid>§progress_type: ProgressType§value: i32§note: Option<String>§logged_at: DateTime<Utc>§created_at: DateTime<Utc>Implementations§
Source§impl ReadingProgress
impl ReadingProgress
pub fn new(book_id: Uuid, progress_type: ProgressType, value: i32) -> Self
Trait Implementations§
Source§impl Clone for ReadingProgress
impl Clone for ReadingProgress
Source§fn clone(&self) -> ReadingProgress
fn clone(&self) -> ReadingProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadingProgress
impl Debug for ReadingProgress
Source§impl<'de> Deserialize<'de> for ReadingProgress
impl<'de> Deserialize<'de> for ReadingProgress
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 ReadingProgress
impl RefUnwindSafe for ReadingProgress
impl Send for ReadingProgress
impl Sync for ReadingProgress
impl Unpin for ReadingProgress
impl UnsafeUnpin for ReadingProgress
impl UnwindSafe for ReadingProgress
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