pub struct MemorySkillStore { /* private fields */ }Implementations§
Source§impl MemorySkillStore
impl MemorySkillStore
pub fn new( state_dir: &Path, config: &MemorySkillConfig, ) -> Result<Self, MemorySkillError>
pub fn candidate_dir(&self) -> &Path
pub fn candidate_json_path(&self, id: &str) -> PathBuf
pub fn candidate_markdown_path(&self, id: &str) -> PathBuf
pub fn transitions_path(&self) -> PathBuf
pub fn advisories_path(&self) -> PathBuf
pub fn write_candidate( &self, candidate: &MemorySkillCandidate, ) -> Result<(), MemorySkillError>
pub fn write_candidate_if_fingerprint_absent( &self, candidate: &MemorySkillCandidate, ) -> Result<bool, MemorySkillError>
pub fn append_advisory( &self, advisory: &MemorySkillAdvisory, ) -> Result<bool, MemorySkillError>
pub fn append_transition( &self, transition: &CandidateTransition, ) -> Result<(), MemorySkillError>
pub fn read_candidates( &self, ) -> Result<Vec<MemorySkillCandidate>, MemorySkillError>
pub fn read_advisories( &self, ) -> Result<Vec<MemorySkillAdvisory>, MemorySkillError>
pub fn dismiss_advisory(&self, id: &str) -> Result<(), MemorySkillError>
pub fn has_advisory_fingerprint( &self, fingerprint: &str, ) -> Result<bool, MemorySkillError>
pub fn read_transitions( &self, ) -> Result<Vec<CandidateTransition>, MemorySkillError>
pub fn show(&self, id: &str) -> Result<MemorySkillCandidate, MemorySkillError>
pub fn has_active_fingerprint( &self, fingerprint: &str, ) -> Result<bool, MemorySkillError>
pub fn pending_candidates( &self, ) -> Result<Vec<MemorySkillCandidate>, MemorySkillError>
pub fn pending_for_commits( &self, commits: &BTreeSet<&str>, ) -> Result<Vec<MemorySkillCandidate>, MemorySkillError>
pub fn approve( &self, id: &str, apply: bool, ) -> Result<Option<PathBuf>, MemorySkillError>
pub fn apply(&self, id: &str) -> Result<PathBuf, MemorySkillError>
pub fn reject(&self, id: &str, reason: &str) -> Result<(), MemorySkillError>
pub fn supersede( &self, id: &str, replacement_id: &str, reason: &str, ) -> Result<(), MemorySkillError>
Trait Implementations§
Source§impl Clone for MemorySkillStore
impl Clone for MemorySkillStore
Source§fn clone(&self) -> MemorySkillStore
fn clone(&self) -> MemorySkillStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemorySkillStore
impl RefUnwindSafe for MemorySkillStore
impl Send for MemorySkillStore
impl Sync for MemorySkillStore
impl Unpin for MemorySkillStore
impl UnsafeUnpin for MemorySkillStore
impl UnwindSafe for MemorySkillStore
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