forge_common 0.1.0

Library for dealing with forge servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::Path;

use crate::error::AppResult;

#[derive(Debug)]
pub struct DatabaseCredentials {
    pub username: String,
    pub password: String,
    pub database: String,
}

pub trait DatabaseConfigProvider {
    fn get_database_credentials(&self, root_path: &Path) -> AppResult<Option<DatabaseCredentials>>;
}