We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716188a commit 9bd8093Copy full SHA for 9bd8093
collab-database/src/template/relation_parse.rs
@@ -1,4 +1,6 @@
1
use crate::entity::FieldType;
2
+use std::fmt;
3
+use std::fmt::{Display, Formatter};
4
5
use crate::rows::{new_cell_builder, Cell, RowId};
6
use crate::template::entity::CELL_DATA;
@@ -12,6 +14,17 @@ pub struct RelationCellData {
12
14
pub row_ids: Vec<RowId>,
13
15
}
16
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
+
28
impl TypeOptionCellData for RelationCellData {
29
fn is_empty(&self) -> bool {
30
self.row_ids.is_empty()
0 commit comments