Skip to content

Commit

Permalink
Add new CreateBlock children to page creation (#49)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
markacola committed Feb 25, 2023
1 parent 97764fb commit 1ba9846
Show file tree
Hide file tree
Showing 13 changed files with 924 additions and 747 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
Loading

0 comments on commit 1ba9846

Please sign in to comment.