pub struct DatabasesEndpoint { /* private fields */ }
Implementations§
Source§impl DatabasesEndpoint
impl DatabasesEndpoint
pub async fn create_a_database( &self, request: CreateADatabaseRequest, ) -> Result<Database, NotionClientError>
Source§impl DatabasesEndpoint
impl DatabasesEndpoint
pub async fn query_a_database( &self, database_id: &str, request: QueryDatabaseRequest, ) -> Result<QueryDatabaseResponse, NotionClientError>
Source§impl DatabasesEndpoint
impl DatabasesEndpoint
pub async fn retrieve_a_database( &self, database_id: &str, ) -> Result<Database, NotionClientError>
Source§impl DatabasesEndpoint
impl DatabasesEndpoint
pub async fn update_a_database( &self, database_id: &str, request: UpdateADatabaseRequest, ) -> Result<Database, NotionClientError>
Trait Implementations§
Source§impl Clone for DatabasesEndpoint
impl Clone for DatabasesEndpoint
Source§fn clone(&self) -> DatabasesEndpoint
fn clone(&self) -> DatabasesEndpoint
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 DatabasesEndpoint
impl !RefUnwindSafe for DatabasesEndpoint
impl Send for DatabasesEndpoint
impl Sync for DatabasesEndpoint
impl Unpin for DatabasesEndpoint
impl !UnwindSafe for DatabasesEndpoint
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