INNER CODE UNIT · Rust
new
pbeets/rithmic-rs · src/config.rs:555
pub fn new(env: RithmicEnv) -> Self {
let system_name = env.default_system_name().to_string();
Self {
env,
url: None,
beta_url: None,
user: None,
password: None,
system_name: Some(system_name),
app_name: None,
app_version: None,
request_timeout: DEFAULT_REQUEST_TIMEOUT,
subscription_capacity: None,
connect_attempt_timeout: DEFAULT_CONNECT_ATTEMPT_TIMEOUT,
connect_total_timeout: None,
}
}