diff options
author | 2021-05-16 07:54:31 -0700 | |
---|---|---|
committer | 2021-05-16 22:17:54 -0700 | |
commit | 2abfa7ef1e5ec11de44ec2c59fb0f0980c6e4908 (patch) | |
tree | 1d16229bad209fa9acbcbfc595672999df6d688e /src/lib.rs | |
parent | e1005f715bde3fb260d97a1a08e3e1de358471d6 (diff) | |
download | notion-2abfa7ef1e5ec11de44ec2c59fb0f0980c6e4908.tar.gz notion-2abfa7ef1e5ec11de44ec2c59fb0f0980c6e4908.tar.zst notion-2abfa7ef1e5ec11de44ec2c59fb0f0980c6e4908.zip |
generic block
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,14 +104,14 @@ impl NotionApi { .await?) } - pub async fn get_block_children<T: Identifiable>( + pub async fn get_block_children<T: Identifiable<Type = String>>( &self, block_id: T ) -> Result<ListResponse<Block>, NotionApiClientError> { Ok(NotionApi::make_json_request( self.client.get(&format!( "https://api.notion.com/v1/blocks/{block_id}/children", - block_id = block_id.id(). + block_id = block_id.id().id() )) ).await?) } |