pub struct BlocksEndpoint { /* private fields */ }
Implementations§
Source§impl BlocksEndpoint
impl BlocksEndpoint
pub async fn append_block_children( &self, block_id: &str, request: AppendBlockChildrenRequest, ) -> Result<AppendBlockChildrenResponse, NotionClientError>
Source§impl BlocksEndpoint
impl BlocksEndpoint
pub async fn delete_a_block( &self, block_id: &str, ) -> Result<Block, NotionClientError>
Source§impl BlocksEndpoint
impl BlocksEndpoint
pub async fn retrieve_a_block( &self, block_id: &str, ) -> Result<Block, NotionClientError>
pub async fn retrieve_block_children( &self, block_id: &str, start_cursor: Option<&str>, page_size: Option<u32>, ) -> Result<RetrieveBlockChilerenResponse, NotionClientError>
Source§impl BlocksEndpoint
impl BlocksEndpoint
pub async fn update_a_block( &self, block_id: &str, request: UpdateABlockRequest, ) -> Result<UpdateABlockRequest, NotionClientError>
Trait Implementations§
Source§impl Clone for BlocksEndpoint
impl Clone for BlocksEndpoint
Source§fn clone(&self) -> BlocksEndpoint
fn clone(&self) -> BlocksEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BlocksEndpoint
impl !RefUnwindSafe for BlocksEndpoint
impl Send for BlocksEndpoint
impl Sync for BlocksEndpoint
impl Unpin for BlocksEndpoint
impl !UnwindSafe for BlocksEndpoint
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