pub trait SecretResolver: Send + Sync {
// Required method
fn resolve(
&self,
locator: &SecretLocator,
) -> Result<String, FoundationError>;
}Expand description
Resolves a Keychain locator to a secret. Production implementations read
the OS Keychain; tests use an in-memory map. The trait is never named from
oxibrain-core / oxibrain-store / oxibrain-index; only the CLI
adapter boundary calls into it (ARCHITECTURE §15.7).
Required Methods§
Sourcefn resolve(&self, locator: &SecretLocator) -> Result<String, FoundationError>
fn resolve(&self, locator: &SecretLocator) -> Result<String, FoundationError>
Fetch the secret bytes for a validated locator. Returns a structured
FoundationError::SecretUnavailable so the caller can report why
the profile cannot run and fall through to the next resolution step.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".