Compare commits

...

2 commits

2 changed files with 12 additions and 2 deletions

View file

@ -17,8 +17,8 @@ lazy_static = "1.4.0"
log = "0.4.20"
regex = "1.7.1"
reqwest = { version = "0.11.14", features = ["json"] }
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.91"
serde = { version = "^1.0", features = ["derive"], default-features = false }
serde_json = { version = "^1.0", features = ["raw_value"], default-features = false }
[dev-dependencies]
tokio = { version = "1.28.1", features = ["macros"] }

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,