notion_client/
objects.rs

1use serde::Deserialize;
2
3pub mod block;
4pub mod comment;
5pub mod database;
6pub mod emoji;
7pub mod error;
8pub mod file;
9pub mod page;
10pub mod parent;
11pub mod property;
12pub mod rich_text;
13#[cfg(test)]
14mod tests;
15pub mod user;
16
17use error::Error;
18
19#[derive(Deserialize, Debug, Eq, PartialEq, Clone)]
20#[serde(untagged)]
21pub enum Response<T> {
22    Success(T),
23    Error(Error),
24}