Struct notion_async_api::Api
source · pub struct Api { /* private fields */ }
Expand description
Low-level notion Api.
Implementations§
source§impl Api
impl Api
pub fn new(token: &str) -> Self
pub async fn get_object<T>(&self, id: &str) -> Result<T, NotionError>where
T: DeserializeOwned + Requestable,
pub async fn list<T, P>(
&self,
pagination: &P,
) -> Result<PaginationResult<T>, NotionError>where
T: DeserializeOwned,
P: Pagination<T> + NextCursor,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl !RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl !UnwindSafe for Api
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)