Struct notion_wasi::Client
source · pub struct Client { /* private fields */ }Expand description
An API client for Notion. Create a client by using new(api_token: String).
Implementations§
Trait Implementations§
source§impl TClient for Client
impl TClient for Client
fn get<'life0, 'async_trait, S>( &'life0 self, uri: S ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>where S: 'async_trait + Into<String> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn post<'life0, 'async_trait, S>( &'life0 self, uri: S ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>where S: 'async_trait + Into<String> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn post_json<'life0, 'life1, 'async_trait, S>( &'life0 self, uri: S, body: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>where S: 'async_trait + Into<String> + Send, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Auto Trait Implementations§
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