Trait asciii::project::Exportable [] [src]

pub trait Exportable {
    fn export_dir(&self) -> PathBuf;
fn offer_file_name(&self, extension: &str) -> Option<String>;
fn invoice_file_name(&self, extension: &str) -> Option<String>; fn output_file_exists(&self, bill_type: &BillType) -> bool { ... }
fn output_file(&self, bill_type: &BillType) -> Option<PathBuf> { ... }
fn offer_file(&self) -> Option<PathBuf> { ... }
fn invoice_file(&self) -> Option<PathBuf> { ... }
fn offer_file_exists(&self) -> bool { ... }
fn invoice_file_exists(&self) -> bool { ... }
fn write_to_path<P: AsRef<OsStr> + Debug>(
        content: &str,
        target: &P
    ) -> Result<PathBuf> { ... }
fn write_to_file(
        &self,
        content: &str,
        bill_type: &BillType,
        ext: &str
    ) -> Result<PathBuf> { ... }
fn write_to_offer_file(&self, content: &str, ext: &str) -> Result<PathBuf> { ... }
fn write_to_invoice_file(&self, content: &str, ext: &str) -> Result<PathBuf> { ... } }

Functionality to create output files

Required Methods

Where to export to

Filename of the offer output file.

Filename of the invoice output file. Carefull! uses today's date.

Provided Methods

Implementors