pub struct NotionApi { /* private fields */ }
Expand description
Notion Api Client
Implementations§
Source§impl NotionApi
impl NotionApi
pub async fn block_children(&self, id: BlockId) -> Result<Object, Error>
pub async fn block_append_children(&self, id: PageId) -> Result<Object, Error>
pub async fn block_delete(&self, id: BlockId) -> Result<Object, Error>
pub async fn block_update( &self, id: BlockId, db: UpdateBlock, ) -> Result<Object, Error>
Source§impl NotionApi
impl NotionApi
Sourcepub async fn databases_retrieve(&self, id: DatabaseId) -> Result<Object, Error>
pub async fn databases_retrieve(&self, id: DatabaseId) -> Result<Object, Error>
Retrieve a user
pub async fn databases_query( &self, id: DatabaseId, query: Option<DatabaseQuery>, ) -> Result<Object, Error>
pub async fn databases_create( &self, db: CreateDatabase, ) -> Result<Object, Error>
pub async fn databases_update( &self, id: DatabaseId, db: UpdateDatabase, ) -> Result<Object, Error>
Source§impl NotionApi
impl NotionApi
pub async fn pages_property( &self, id: PageId, property_id: PropertyId, ) -> Result<Object, Error>
pub async fn pages_create(&self, page: CreatePage) -> Result<Object, Error>
pub async fn pages_update( &self, id: PageId, page: UpdatePage, ) -> Result<Object, Error>
pub async fn pages_delete(&self, id: PageId) -> Result<Object, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NotionApi
impl !RefUnwindSafe for NotionApi
impl Send for NotionApi
impl Sync for NotionApi
impl Unpin for NotionApi
impl !UnwindSafe for NotionApi
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