pub struct CreateDatabaseClient { /* private fields */ }Implementations§
Source§impl CreateDatabaseClient
impl CreateDatabaseClient
Sourcepub fn reqwest_client(self, reqwest_client: Client) -> Self
pub fn reqwest_client(self, reqwest_client: Client) -> Self
Set the value of the reqwest_client field.
The reqwest http client
Sourcepub fn description(self, description: Vec<RichText>) -> Self
pub fn description(self, description: Vec<RichText>) -> Self
Set the value of the description field.
Field that can be added, though not documented in Notion’s API documentation. Can be used as a description for the database.
Sourcepub fn properties(self, properties: HashMap<String, DataSourceProperty>) -> Self
pub fn properties(self, properties: HashMap<String, DataSourceProperty>) -> Self
Set the value of the properties field.
Source§impl CreateDatabaseClient
impl CreateDatabaseClient
pub async fn send(self) -> Result<DatabaseResponse, Error>
Trait Implementations§
Source§impl Debug for CreateDatabaseClient
impl Debug for CreateDatabaseClient
Source§impl Default for CreateDatabaseClient
impl Default for CreateDatabaseClient
Source§fn default() -> CreateDatabaseClient
fn default() -> CreateDatabaseClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateDatabaseClient
impl !RefUnwindSafe for CreateDatabaseClient
impl Send for CreateDatabaseClient
impl Sync for CreateDatabaseClient
impl Unpin for CreateDatabaseClient
impl !UnwindSafe for CreateDatabaseClient
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