From 5f1afc69f1e3b3dc8ed07b148c36c922934e546a Mon Sep 17 00:00:00 2001 From: Ben Weber Date: Thu, 8 Feb 2024 11:42:32 +0100 Subject: [PATCH] Mark list_databases as deprecated --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 37fd011..44b1b5d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -115,6 +115,10 @@ impl NotionApi { /// List all the databases shared with the supplied integration token. /// Because of the deprecation of the original endpoint this just calls /// [search()](Self::search()) with a filter on databases + /// + #[deprecated( + note = "This method is deprecated. Please use `search()` with a filter on databases instead." + )] pub async fn list_databases(&self) -> Result, Error> { self.search(NotionSearch::filter_by_databases()) .await