Skip to main content

BridgeConfigProvider

Trait BridgeConfigProvider 

Source
pub trait BridgeConfigProvider: Send + Sync {
    // Required methods
    fn get_remote_config(&self) -> Result<Option<RemoteBridgeConfig>>;
    fn get_api_key(&self) -> Result<Option<Zeroizing<String>>>;
}
Expand description

Provides remote bridge configuration and API key access.

CLI implements this using ConfigManager + SessionManager.

Required Methods§

Source

fn get_remote_config(&self) -> Result<Option<RemoteBridgeConfig>>

Get the remote bridge configuration (returns None if not enabled)

Source

fn get_api_key(&self) -> Result<Option<Zeroizing<String>>>

Get the API key (from keyring or session, Zeroizing for secure memory)

Implementors§