Load an existing store's configuration without initializing it. This does not load any private keys; callers may load public identities.
(root: &Path)
| 373 | /// Load an existing store's configuration without initializing it. |
| 374 | /// This does not load any private keys; callers may load public identities. |
| 375 | pub fn open_existing(root: &Path) -> Result<Self, IdentityError> { |
| 376 | let content = fs::read_to_string(root.join(Self::CONFIG_FILE))?; |
| 377 | let config = toml::from_str(&content)?; |
| 378 | Ok(Self { |
| 379 | root: root.to_path_buf(), |
| 380 | config, |
| 381 | }) |
| 382 | } |
| 383 | |
| 384 | /// Open or create the default identity store. |
| 385 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected