ito-domain 0.1.30

Domain models and repositories for Ito
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Spec repository port definitions.

use super::{SpecDocument, SpecSummary};
use crate::errors::DomainResult;

/// Port for accessing promoted spec data.
pub trait SpecRepository {
    /// List all promoted specs.
    fn list(&self) -> DomainResult<Vec<SpecSummary>>;

    /// Get a promoted spec by ID.
    fn get(&self, id: &str) -> DomainResult<SpecDocument>;
}