pub struct FsReviewStore { /* private fields */ }Expand description
One review’s sidecar directory (ADR 0013).
Implementations§
Source§impl FsReviewStore
impl FsReviewStore
pub fn for_review<L: RepoLayout>( layout: &L, base_sha: &str, head_spec: &str, ) -> Result<Self, EngineError>
Sourcepub fn at(dir: PathBuf) -> Result<Self, EngineError>
pub fn at(dir: PathBuf) -> Result<Self, EngineError>
Test/tooling entry: open at an explicit directory.
pub fn dir(&self) -> &Path
Trait Implementations§
Source§impl ReviewStore for FsReviewStore
impl ReviewStore for FsReviewStore
Source§fn save_plan(&self, hash: &str, json: &str) -> Result<(), EngineError>
fn save_plan(&self, hash: &str, json: &str) -> Result<(), EngineError>
Persist a plan document under its content hash and point
current at
it. Idempotent: re-saving the same hash must not rewrite the body. Read morefn load_state(&self) -> Result<ReviewState, EngineError>
fn save_state(&self, state: &ReviewState) -> Result<(), EngineError>
fn load_findings(&self) -> Result<Vec<Finding>, EngineError>
Source§fn save_findings(&self, findings: &[Finding]) -> Result<(), EngineError>
fn save_findings(&self, findings: &[Finding]) -> Result<(), EngineError>
Rewrites the whole set (status changes, deletions, re-anchor results).
The set is small; simplicity beats cleverness.
Auto Trait Implementations§
impl Freeze for FsReviewStore
impl RefUnwindSafe for FsReviewStore
impl Send for FsReviewStore
impl Sync for FsReviewStore
impl Unpin for FsReviewStore
impl UnsafeUnpin for FsReviewStore
impl UnwindSafe for FsReviewStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more