Sets path to load configuration from. # Arguments `path` - Directory containing config.toml # Examples ```no_run # use learner::Learner; # async fn example() -> Result<(), Box > { let learner = Learner::builder().with_path("~/.learner").build().await?; # Ok(()) # } ```
(mut self, path: impl AsRef<Path>)
| 505 | /// # } |
| 506 | /// ``` |
| 507 | pub fn with_path(mut self, path: impl AsRef<Path>) -> Self { |
| 508 | self.config_path = Some(path.as_ref().to_path_buf()); |
| 509 | self |
| 510 | } |
| 511 | |
| 512 | /// Builds a new [`Learner`] instance with the configured options. |
| 513 | /// |
no outgoing calls