Sets explicit configuration for the builder. # Arguments `config` - Configuration to use # Examples ```no_run # use learner::{Config, Learner}; # async fn example() -> Result<(), Box > { let config = Config::default(); let learner = Learner::builder().with_config(config).build().await?; # Ok(()) # } ```
(mut self, config: Config)
| 485 | /// # } |
| 486 | /// ``` |
| 487 | pub fn with_config(mut self, config: Config) -> Self { |
| 488 | self.config = Some(config); |
| 489 | self |
| 490 | } |
| 491 | |
| 492 | /// Sets path to load configuration from. |
| 493 | /// |