Trait BrowserSequenceStore
Source pub trait BrowserSequenceStore:
Send
+ Sync
+ Debug {
// Required methods
fn create_sequence<'life0, 'async_trait>(
&'life0 self,
seq: NewBrowserSequence,
) -> Pin<Box<dyn Future<Output = Result<BrowserSequence>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn append_step<'life0, 'async_trait>(
&'life0 self,
step: NewBrowserStep,
) -> Pin<Box<dyn Future<Output = Result<BrowserStep>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_observation<'life0, 'async_trait>(
&'life0 self,
obs: NewBrowserObservation,
) -> Pin<Box<dyn Future<Output = Result<BrowserObservation>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_screenshot<'life0, 'async_trait>(
&'life0 self,
shot: NewBrowserScreenshot,
) -> Pin<Box<dyn Future<Output = Result<BrowserScreenshot>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_steps<'life0, 'life1, 'async_trait>(
&'life0 self,
sequence_id: &'life1 str,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<BrowserStep>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_observations<'life0, 'life1, 'async_trait>(
&'life0 self,
sequence_id: &'life1 str,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<BrowserObservation>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_sequences<'life0, 'async_trait>(
&'life0 self,
query: ListSequencesQuery,
) -> Pin<Box<dyn Future<Output = Result<ListSequencesResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_sequence<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<BrowserSequence>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_sequence<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_favourite<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
favourite: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}