feat: added button type

This commit is contained in:
Bram Dingelstad 2024-03-16 18:15:36 +01:00
parent 09d80b6afa
commit 2760c7c24f

View file

@ -871,6 +871,10 @@ pub enum DatabaseProperty {
id: String,
name: String,
},
Button {
id: String,
name: String,
},
Unsupported(Value),
}
@ -898,6 +902,7 @@ impl DatabaseProperty {
| Select { id, .. }
| Status { id, .. }
| Title { id, .. }
| Button { id, .. }
| Url { id, .. } => Some(id.to_owned()),
Unsupported(..) => None,
@ -925,6 +930,7 @@ impl DatabaseProperty {
| Rollup { name, .. }
| Select { name, .. }
| Status { name, .. }
| Button { name, .. }
| Title { name, .. }
| Url { name, .. } => Some(name.to_owned()),
@ -1107,6 +1113,9 @@ pub enum Property {
UniqueId {
id: String,
},
Button {
id: String,
},
Unsupported(Value),
}
@ -1137,6 +1146,7 @@ impl Property {
| Url { id, .. }
| Formula { id, .. }
| Verification { id, .. }
| Button { id, .. }
| UniqueId { id, .. } => Some(id.to_owned()),
Unsupported(_) => None,