pub struct NotionClient {
pub url: NotionURL,
pub token: String,
}
Fields§
§url: NotionURL
§token: String
Implementations§
Source§impl NotionClient
impl NotionClient
pub fn set_url(&mut self, url: &str)
pub fn set_token(&mut self, token: &str)
pub async fn get_table(&self) -> Result<String, String>
pub fn get_table_sync(&self) -> Result<String, String>
pub async fn set_data_base_element( &self, line: &str, column: &str, element: DataType, )
Trait Implementations§
Source§impl Clone for NotionClient
impl Clone for NotionClient
Source§fn clone(&self) -> NotionClient
fn clone(&self) -> NotionClient
Returns a copy 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 moreSource§impl Debug for NotionClient
impl Debug for NotionClient
Source§impl Default for NotionClient
impl Default for NotionClient
Source§fn default() -> NotionClient
fn default() -> NotionClient
Returns the “default value” for a type. Read more
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