pub trait SpecContentStore: Send + Sync {
// Required methods
fn read_spec_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
project_name: &'life1 str,
spec_name: &'life2 str,
file_type: SpecFileType,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn write_spec_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
project_name: &'life1 str,
spec_name: &'life2 str,
file_type: SpecFileType,
content: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn is_file_modified<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
project_name: &'life1 str,
spec_name: &'life2 str,
file_type: SpecFileType,
new_content: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}
Expand description
Content store abstraction for EditEngine I/O via façade
Required Methods§
fn read_spec_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
project_name: &'life1 str,
spec_name: &'life2 str,
file_type: SpecFileType,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write_spec_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
project_name: &'life1 str,
spec_name: &'life2 str,
file_type: SpecFileType,
content: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn is_file_modified<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
project_name: &'life1 str,
spec_name: &'life2 str,
file_type: SpecFileType,
new_content: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Implementors§
impl<B: FoundryBackend> SpecContentStore for Foundry<B>
SpecContentStore implementation for the Foundry façade