pub struct NotionClient {
pub api_key: String,
}
Fields§
§api_key: String
Implementations§
Source§impl NotionClient
impl NotionClient
pub fn get_database(&self, database_id: &str) -> Result<NotionDatabaseSchema>
pub fn get_all_pages( &self, database_id: &str, schema: &NotionDatabaseSchema, ) -> Result<Vec<NotionPage>>
Auto Trait Implementations§
impl Freeze for NotionClient
impl RefUnwindSafe for NotionClient
impl Send for NotionClient
impl Sync for NotionClient
impl Unpin for NotionClient
impl UnwindSafe for NotionClient
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