pub struct Note {
pub id: u64,
pub version: NonZeroU64,
pub updated_at: OffsetDateTime,
pub is_active: bool,
pub created_at: OffsetDateTime,
pub x: u64,
pub y: u64,
pub width: u64,
pub height: u64,
pub body: Box<str>,
pub creator_id: NonZeroU64,
}
Fields§
§id: u64
The id of the note.
Together with the version, this creates a unique id for the note.
version: NonZeroU64
The version of the note.
Together with the id, this creates a unique id for the note.
updated_at: OffsetDateTime
The time of the last update.
is_active: bool
?
created_at: OffsetDateTime
The time of the creation.
x: u64
The x position.
y: u64
The y position
width: u64
The width
height: u64
The height
body: Box<str>
The note body
creator_id: NonZeroU64
The creator
Trait Implementations§
source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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 RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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