pub struct Database { /* private fields */ }
Implementations§
Source§impl Database
impl Database
pub fn new(database_file: &str) -> Result<Self>
pub fn increment(&self, project: String) -> Result<()>
pub fn add(&self, projects: Vec<String>) -> Result<()>
pub fn add_new(&self, projects: Vec<String>) -> Result<()>
pub fn find(&self, input: &str) -> Result<Vec<String>>
pub fn all(&self) -> Result<Vec<String>>
pub fn remove(&self, project: String) -> Result<()>
pub fn append(&self, project: String) -> Result<()>
pub fn alias(&self, project: &str, alias: &str) -> Result<()>
pub fn remove_alias(&self, project: &str) -> Result<()>
pub fn remove_alias_by_alias(&self, alias: &str) -> Result<()>
pub fn all_aliased(&self) -> Result<Vec<(String, String)>>
pub fn move_project(&self, from_location: &str, to_location: &str) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl !Sync for Database
impl Unpin for Database
impl !UnwindSafe for Database
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