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