aboutsummaryrefslogtreecommitdiff
path: root/src/models/properties.rs
diff options
context:
space:
mode:
authorGravatar Jake Swenson <jakeswenson@users.noreply.github.com> 2021-05-16 22:23:37 -0700
committerGravatar GitHub <noreply@github.com> 2021-05-17 05:23:37 +0000
commit19d87e6ee3ae44c5b1c853adf00329a894778b06 (patch)
tree35f2880295c3f2563f06cbbcb17dd774c3be08aa /src/models/properties.rs
parenta2dc79a5079d6286ebd148cf25a00e5dd013efdc (diff)
downloadnotion-19d87e6ee3ae44c5b1c853adf00329a894778b06.tar.gz
notion-19d87e6ee3ae44c5b1c853adf00329a894778b06.tar.zst
notion-19d87e6ee3ae44c5b1c853adf00329a894778b06.zip
feat: adding proper error type with snafu (#8)
Diffstat (limited to 'src/models/properties.rs')
-rw-r--r--src/models/properties.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/properties.rs b/src/models/properties.rs
index c55ce1a..22689e9 100644
--- a/src/models/properties.rs
+++ b/src/models/properties.rs
@@ -157,7 +157,7 @@ pub enum PropertyConfiguration {
Checkbox { id: PropertyId },
/// Represents a URL Property
/// See https://developers.notion.com/reference/database#url-configuration
- URL { id: PropertyId },
+ Url { id: PropertyId },
/// Represents a Email Property
/// See https://developers.notion.com/reference/database#email-configuration
Email { id: PropertyId },
@@ -292,7 +292,7 @@ pub enum PropertyValue {
id: PropertyId,
checkbox: bool,
},
- URL {
+ Url {
id: PropertyId,
url: String,
},