pub struct Tool { /* private fields */ }
Expand description
Different features
Implementations§
Source§impl Tool
impl Tool
Sourcepub fn install_end(&mut self)
pub fn install_end(&mut self)
Stop server after install
Sourcepub async fn check_db(
&self,
config: DBConfig,
sql: Option<Vec<String>>,
) -> Result<String, String>
pub async fn check_db( &self, config: DBConfig, sql: Option<Vec<String>>, ) -> Result<String, String>
Check db connection
Sourcepub fn get_db_type(&self) -> &'static str
pub fn get_db_type(&self) -> &'static str
Get database type
Sourcepub async fn get_install_sql(&self) -> Result<String, Error>
pub async fn get_install_sql(&self) -> Result<String, Error>
Get install sql srcipt from github
pub fn save_config_file(&self, data: &str) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tool
impl !RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl !UnwindSafe for Tool
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