aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Jake Swenson <jakeswenson@users.noreply.github.com> 2021-05-16 22:09:23 -0700
committerGravatar GitHub <noreply@github.com> 2021-05-16 22:09:23 -0700
commita2dc79a5079d6286ebd148cf25a00e5dd013efdc (patch)
tree116b8b9272174395568eaa699c5c73104e0b3c5e /src/lib.rs
parentfa85eb7182471a0fa15b7268e4c9adac326756f8 (diff)
downloadnotion-a2dc79a5079d6286ebd148cf25a00e5dd013efdc.tar.gz
notion-a2dc79a5079d6286ebd148cf25a00e5dd013efdc.tar.zst
notion-a2dc79a5079d6286ebd148cf25a00e5dd013efdc.zip
chore: lots of little cleanup (#7)
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7345ef9..c97ee48 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -11,13 +11,13 @@ const NOTION_API_VERSION: &'static str = "2021-05-13";
// todo: replace with proper snafu error
pub type NotionApiClientError = Box<dyn std::error::Error>;
-trait Identifiable {
+pub trait Identifiable {
// There should only be one way to identify an object
type Type;
fn id(&self) -> &Self::Type;
}
-struct NotionApi {
+pub struct NotionApi {
client: Client,
}
@@ -112,7 +112,7 @@ mod tests {
DatabaseQuery, FilterCondition, FilterProperty, FilterValue, NotionSearch, TextCondition,
};
use crate::models::Object;
- use crate::{Identifiable, NotionApi};
+ use crate::NotionApi;
fn test_token() -> String {
let token = {