INNER CODE UNIT · Rust
new
Trow-Registry/trow · src/lib.rs:100
pub fn new() -> Self {
Self {
data_dir: PathBuf::from_str("./data").unwrap(),
service_name: "http://trow".to_string(),
config_file: ConfigFile::default(),
dry_run: false,
token_secret: Uuid::new_v4().as_bytes().to_vec(),
user: None,
cors: None,
uses_tls: false,
db_connection: None,
}
}
pub fn with_config(
&mut self,
config_file: impl AsRef<str>,
) -> Result<&mut Self, TrowConfigError> {