Skip to content

Commit 9bd8093

Browse files
committed
chore: to string
1 parent 716188a commit 9bd8093

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

collab-database/src/template/relation_parse.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
use crate::entity::FieldType;
2+
use std::fmt;
3+
use std::fmt::{Display, Formatter};
24

35
use crate::rows::{new_cell_builder, Cell, RowId};
46
use crate::template::entity::CELL_DATA;
@@ -12,6 +14,17 @@ pub struct RelationCellData {
1214
pub row_ids: Vec<RowId>,
1315
}
1416

17+
impl ToString for RelationCellData {
18+
fn to_string(&self) -> String {
19+
self
20+
.row_ids
21+
.iter()
22+
.map(|id| id.to_string())
23+
.collect::<Vec<_>>()
24+
.join(", ")
25+
}
26+
}
27+
1528
impl TypeOptionCellData for RelationCellData {
1629
fn is_empty(&self) -> bool {
1730
self.row_ids.is_empty()

0 commit comments

Comments
 (0)