INNER CODE UNIT · Rust

builder

pbeets/rithmic-rs · src/config.rs:492

    pub fn builder(env: RithmicEnv) -> RithmicConfigBuilder {
        RithmicConfigBuilder::new(env)
    }
}

/// Builder for a [`RithmicConfig`].
///
/// Start empty with [`RithmicConfig::builder`], or pre-filled from the
/// environment with [`RithmicConfigBuilder::from_env`]. Setters can be called
/// in any order; a later call replaces an earlier one.
#[must_use = "the builder does nothing until build() is called"]
pub struct RithmicConfigBuilder {
    env: RithmicEnv,
    url: Option<String>,
    beta_url: Option<String>,
    user: Option<String>,
    password: Option<String>,
    system_name: Option<String>,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…