Skip to main content

BackendModuleReader

Trait BackendModuleReader 

Source
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§

Source

fn list_modules(&self) -> Result<Vec<ModuleSummary>, DomainError>

List all module summaries from the backend.

Source

fn get_module(&self, module_id: &str) -> Result<Module, DomainError>

Get a full module from the backend.

Implementors§