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>>
fn post<'life0, 'async_trait, S>( &'life0 self, uri: S, ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + '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>>
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