[−][src]Trait asciii::storage::storable::Storable
Required Methods
fn open_folder(_: &FolderPath) -> StorageResult<Self> where
Self: Sized,
Self: Sized,
opens a projectfolder
fn open_file(_: &FilePath) -> StorageResult<Self> where
Self: Sized,
Self: Sized,
fn from_template(
project_name: &str,
template: &Path,
data: &HashMap<&str, String>
) -> StorageResult<StorableAndTempDir<Self>> where
Self: Sized,
project_name: &str,
template: &Path,
data: &HashMap<&str, String>
) -> StorageResult<StorableAndTempDir<Self>> where
Self: Sized,
creates in tempfile
fn short_desc(&self) -> String
fn modified_date(&self) -> Option<Date<Utc>>
fn index(&self) -> Option<String>
For sorting
fn prefix(&self) -> Option<String>
For archiving
fn set_file(&mut self, new_file: &Path)
Sets the project File
fn file(&self) -> FilePathBuf
Path to project file
fn matches_filter(&self, key: &str, val: &str) -> bool
fn matches_search(&self, term: &str) -> bool
fn is_ready_for_archive(&self) -> bool
Provided Methods
fn ident(&self) -> String
For file names
fn year(&self) -> Option<i32>
fn delete_project_dir_if(
&self,
confirmed: impl Fn() -> bool
) -> Result<()>
&self,
confirmed: impl Fn() -> bool
) -> Result<()>
Deletes the project if the passed in closure returns true
fn set_git_status(&mut self, _: GitStatus)
Tell a project its own git status after opening
This depoends on the feature git_statuses
fn get_git_status(&self) -> GitStatus
Ask a project for its gitstatus
This depoends on the feature git_statuses
fn file_extension() -> String
Main Projectfile extension
fn file_name(&self) -> String
Filename as fallback
fn dir(&self) -> FolderPathBuf
Path to project folder
Implementors
impl Storable for Project
[src]
impl Storable for Project
fn file_extension() -> String
[src]
fn file_extension() -> String
fn from_template(
project_name: &str,
template: &Path,
fill: &HashMap<&str, String>
) -> StorageResult<StorableAndTempDir<Self>>
[src]
fn from_template(
project_name: &str,
template: &Path,
fill: &HashMap<&str, String>
) -> StorageResult<StorableAndTempDir<Self>>
fn prefix(&self) -> Option<String>
[src]
fn prefix(&self) -> Option<String>
fn index(&self) -> Option<String>
[src]
fn index(&self) -> Option<String>
fn short_desc(&self) -> String
[src]
fn short_desc(&self) -> String
fn modified_date(&self) -> Option<Date<Utc>>
[src]
fn modified_date(&self) -> Option<Date<Utc>>
fn file(&self) -> PathBuf
[src]
fn file(&self) -> PathBuf
fn set_file(&mut self, new_file: &Path)
[src]
fn set_file(&mut self, new_file: &Path)
fn set_git_status(&mut self, status: GitStatus)
[src]
fn set_git_status(&mut self, status: GitStatus)
fn get_git_status(&self) -> GitStatus
[src]
fn get_git_status(&self) -> GitStatus
Ask a project for its gitstatus
fn open_folder(folder_path: &Path) -> StorageResult<Project>
[src]
fn open_folder(folder_path: &Path) -> StorageResult<Project>
Opens a yaml and parses it.
fn open_file(file_path: &Path) -> StorageResult<Project>
[src]
fn open_file(file_path: &Path) -> StorageResult<Project>
fn matches_filter(&self, key: &str, val: &str) -> bool
[src]
fn matches_filter(&self, key: &str, val: &str) -> bool
Checks against a certain key-val pair.
fn matches_search(&self, term: &str) -> bool
[src]
fn matches_search(&self, term: &str) -> bool
UNIMPLEMENTED: Checks against a certain search term.
TODO compare agains InvoiceNumber, ClientFullName, Email, event/name, invoice/official Etc
fn is_ready_for_archive(&self) -> bool
[src]
fn is_ready_for_archive(&self) -> bool
fn ident(&self) -> String
[src]
fn ident(&self) -> String
fn year(&self) -> Option<i32>
[src]
fn year(&self) -> Option<i32>
fn delete_project_dir_if(
&self,
confirmed: impl Fn() -> bool
) -> Result<()>
[src]
fn delete_project_dir_if(
&self,
confirmed: impl Fn() -> bool
) -> Result<()>
fn file_name(&self) -> String
[src]
fn file_name(&self) -> String
fn dir(&self) -> FolderPathBuf
[src]
fn dir(&self) -> FolderPathBuf