INNER CODE UNIT · Rust

url

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

    pub fn url(mut self, url: impl Into<String>) -> Self {
        self.url = Some(url.into());
        self
    }

    /// Set the second WebSocket URL, the one
    /// [`ConnectStrategy::AlternateWithRetry`](crate::ConnectStrategy::AlternateWithRetry)
    /// alternates to. Required even if you never use that strategy.
    pub fn beta_url(mut self, beta_url: impl Into<String>) -> Self {
        self.beta_url = Some(beta_url.into());
        self
    }

    /// Set the username. Required.
    pub fn user(mut self, user: impl Into<String>) -> Self {
        self.user = Some(user.into());
        self
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…