Skip to content

Commit

Permalink
chore: serde row details
Browse files Browse the repository at this point in the history
  • Loading branch information
richardshiue committed Mar 19, 2024
1 parent 8d017eb commit 9391181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collab-database/src/rows/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl DatabaseRow {
}
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RowDetail {
pub row: Row,
pub meta: RowMeta,
Expand Down
3 changes: 2 additions & 1 deletion collab-database/src/rows/row_meta.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use collab::preclude::{MapRef, MapRefExtension, ReadTxn, TransactionMut};
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::rows::{meta_id_from_row_id, RowMetaKey};
Expand Down Expand Up @@ -70,7 +71,7 @@ impl<'a, 'b, 'c> RowMetaUpdate<'a, 'b, 'c> {
}
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RowMeta {
pub icon_url: Option<String>,
pub cover_url: Option<String>,
Expand Down

0 comments on commit 9391181

Please sign in to comment.