pub trait GitFossilStore {
// Required methods
fn commit_snapshot(&self, snapshot: &Snapshot) -> Result<()>;
fn get_latest_snapshot(&self) -> Result<Option<Snapshot>>;
}Expand description
Abstraction describing how snapshots are persisted and retrieved.
Required Methods§
Sourcefn commit_snapshot(&self, snapshot: &Snapshot) -> Result<()>
fn commit_snapshot(&self, snapshot: &Snapshot) -> Result<()>
Persist the provided snapshot into the fossil store.
Sourcefn get_latest_snapshot(&self) -> Result<Option<Snapshot>>
fn get_latest_snapshot(&self) -> Result<Option<Snapshot>>
Retrieve the latest snapshot if one exists.