pub struct LedgerStore { /* private fields */ }Implementations§
Source§impl LedgerStore
impl LedgerStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn machine_path(&self) -> PathBuf
pub fn markdown_path(&self) -> PathBuf
pub fn append_entry(&self, entry: &LedgerEntry) -> Result<(), LedgerError>
pub fn read_history(&self) -> Result<Vec<LedgerEntry>, LedgerError>
pub fn latest_entries(&self) -> Result<Vec<LedgerEntry>, LedgerError>
pub fn show(&self, sha: &str) -> Result<LedgerEntry, LedgerError>
pub fn unresolved_rejections(&self) -> Result<Vec<LedgerEntry>, LedgerError>
pub fn resolve(&self, sha: &str) -> Result<LedgerEntry, LedgerError>
pub fn waive(&self, sha: &str, reason: &str) -> Result<LedgerEntry, LedgerError>
pub fn stats(&self) -> Result<LedgerStats, LedgerError>
pub fn render_markdown_mirror(&self) -> Result<(), LedgerError>
Trait Implementations§
Source§impl Clone for LedgerStore
impl Clone for LedgerStore
Source§fn clone(&self) -> LedgerStore
fn clone(&self) -> LedgerStore
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 LedgerStore
impl RefUnwindSafe for LedgerStore
impl Send for LedgerStore
impl Sync for LedgerStore
impl Unpin for LedgerStore
impl UnsafeUnpin for LedgerStore
impl UnwindSafe for LedgerStore
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