pub trait BackendModuleReader {
// Required methods
fn list_modules(&self) -> Result<Vec<ModuleSummary>, DomainError>;
fn get_module(&self, module_id: &str) -> Result<Module, DomainError>;
}Expand description
Port for backend-backed module listing.
Used by repository adapters to resolve module data from the backend when backend mode is enabled.
Required Methods§
Sourcefn list_modules(&self) -> Result<Vec<ModuleSummary>, DomainError>
fn list_modules(&self) -> Result<Vec<ModuleSummary>, DomainError>
List all module summaries from the backend.
Sourcefn get_module(&self, module_id: &str) -> Result<Module, DomainError>
fn get_module(&self, module_id: &str) -> Result<Module, DomainError>
Get a full module from the backend.