[][src]Struct cassiopeia::Invoicer

pub struct Invoicer<'cass> { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.