impl PartialEq for NoteOut {
    fn eq(&self, other: &Self) -> bool {
        self.id == other.id
            && self.category_id == other.category_id
            && self.title == other.title
            && self.data == other.data
    }
}

impl From<&Note> for NoteOut {
    fn from(note: &Note) -> Self {
        NoteOut {
            id: note.id,
            category_id: note.category_id,