[−][src]Struct cassiopeia::Invoicer
An invoice generator builder
The most simple use-case of this type is to provide no parameters
and simply add an INVOICE
line to the cass file. Adittionally
you may provide the client and project name, which will then
require the client_db
path to be set as well.
cass.invoice().run();
Additional errors can be thrown if the client or project are not known in the client db.
cass.invoice() .generate() .db("/home/office/clients.yml".into()) .client("ACME".into()) .run();
Implementations
impl<'cass> Invoicer<'cass>
[src]
pub fn new(tf: &'cass mut Cassiopeia) -> Self
[src]
pub fn generate(self) -> Self
[src]
Enable the invoice generation feature
pub fn db(self, client_db: String) -> Self
[src]
Provide the client database file (.yml format)
pub fn client(self, client: String) -> Self
[src]
Provide the client to invoice
pub fn project(self, project: String) -> Self
[src]
pub fn run(self) -> Option<()>
[src]
Auto Trait Implementations
impl<'cass> RefUnwindSafe for Invoicer<'cass>
[src]
impl<'cass> Send for Invoicer<'cass>
[src]
impl<'cass> Sync for Invoicer<'cass>
[src]
impl<'cass> Unpin for Invoicer<'cass>
[src]
impl<'cass> !UnwindSafe for Invoicer<'cass>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,