diff options
author | 2023-02-26 03:08:54 +1100 | |
---|---|---|
committer | 2023-02-25 08:08:54 -0800 | |
commit | 1ba9846bad1d5c927e0d7658a59097992ef56b60 (patch) | |
tree | c1466c8e6ffc7162c864ff2a6e7c34c512e3c8f4 /src/lib.rs | |
parent | 97764fb864ae1ab6046749fe5cabe00f508b0c61 (diff) | |
download | notion-1ba9846bad1d5c927e0d7658a59097992ef56b60.tar.gz notion-1ba9846bad1d5c927e0d7658a59097992ef56b60.tar.zst notion-1ba9846bad1d5c927e0d7658a59097992ef56b60.zip |
Add new CreateBlock children to page creation (#49)
* extract block to mod
* add CreateBlock struct, implement Into<CreateBlock> for Block, and add children to PageCreateRequest
* move tests into block mod and fix up use
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,8 +1,9 @@ use crate::ids::{BlockId, DatabaseId}; use crate::models::error::ErrorResponse; use crate::models::search::{DatabaseQuery, SearchRequest}; -use crate::models::{Block, Database, ListResponse, Object, Page}; +use crate::models::{Database, ListResponse, Object, Page}; use ids::{AsIdentifier, PageId}; +use models::block::Block; use models::PageCreateRequest; use reqwest::header::{HeaderMap, HeaderValue}; use reqwest::{header, Client, ClientBuilder, RequestBuilder}; |