Struct notion::NotionApi [−][src]
pub struct NotionApi { /* fields omitted */ }
Implementations
impl NotionApi
[src]
impl NotionApi
[src]pub fn new(api_token: String) -> Result<Self, Error>
[src]
pub async fn list_databases(&self) -> Result<ListResponse<Database>, Error>
[src]
pub async fn list_databases(&self) -> Result<ListResponse<Database>, Error>
[src]This method is apparently deprecated/“not recommended”
pub async fn search<T: Into<SearchRequest>>(
&self,
query: T
) -> Result<ListResponse<Object>, Error>
[src]
&self,
query: T
) -> Result<ListResponse<Object>, Error>
pub async fn get_database<T: Identifiable<Type = DatabaseId>>(
&self,
database_id: T
) -> Result<Database, Error>
[src]
&self,
database_id: T
) -> Result<Database, Error>
pub async fn query_database<D, T>(
&self,
database: D,
query: T
) -> Result<ListResponse<Page>, Error> where
T: Into<DatabaseQuery>,
D: Identifiable<Type = DatabaseId>,
[src]
&self,
database: D,
query: T
) -> Result<ListResponse<Page>, Error> where
T: Into<DatabaseQuery>,
D: Identifiable<Type = DatabaseId>,
Auto Trait Implementations
impl !RefUnwindSafe for NotionApi
impl Send for NotionApi
impl Sync for NotionApi
impl Unpin for NotionApi
impl !UnwindSafe for NotionApi
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,