use std::path::PathBuf;
#[derive(Debug, Clone)]
pub struct StudioConfig {
pub port: u16,
pub host: String,
pub schema_path: PathBuf,
pub database_url: Option<String>,
pub allow_writes: bool,
pub yes_i_know: bool,
pub no_browser: bool,
pub auth_token: Option<String>,
}
impl Default for StudioConfig {
fn default() -> Self {
Self {
port: 5555,
host: "127.0.0.1".to_string(),
schema_path: PathBuf::from("schema.ruprizzle"),
database_url: None,
allow_writes: false,
yes_i_know: false,
no_browser: false,
auth_token: None,
}
}
}