pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Sourcepub async fn query_database(
&self,
id: String,
query: Option<DatabaseQuery>,
) -> Result<Pages>
pub async fn query_database( &self, id: String, query: Option<DatabaseQuery>, ) -> Result<Pages>
Query a database https://developers.notion.com/reference/post-database-query
pub async fn update_database(&self, id: String) -> Result<()>
pub async fn create_database(&self) -> Result<()>
Sourcepub async fn get_database(&self, id: String) -> Result<Database>
pub async fn get_database(&self, id: String) -> Result<Database>
Retrieve a database https://developers.notion.com/reference/retrieve-a-database
Source§impl Client
impl Client
Source§impl Client
impl Client
pub async fn get_block(&self, id: &str) -> Result<Block>
pub async fn update_block(&self, id: String, block: Block) -> Result<()>
pub async fn delete_block(&self, id: &str) -> Result<()>
pub async fn get_block_children( &self, id: &str, start_cursor: Option<String>, page_size: Option<u32>, ) -> Result<Blocks>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more