[][src]Struct asciii::project::Project

pub struct Project { /* fields omitted */ }

Represents a Project.

A project is storable, contains products, and you can create an offer or invoice from it. The main implementation is done in spec.

Methods

impl Project
[src]

Access to inner data

Opens a project from file path;

import from yaml file

export to JSON

Used mostly for testing purposes

wrapper around yaml::get() with replacement

Returns the struct Client, which abstracts away client specific stuff.

Returns the struct Offer, which abstracts away offer specific stuff.

Returns the struct Invoice, which abstracts away invoice specific stuff.

Returns the struct Invoice, which abstracts away invoice specific stuff.

Ready to produce offer.

Ready to send an offer to the client.

Valid to produce invoice

Ready to send an invoice to the client.

Completely done and in the past.

Ready to be **h:

Check Templated for replacable markers

Fill certain field

Time between event and creation of invoice

Time between creation of invoice and payment

What I need to do

Produces an iCal calendar from this project.

Trait Implementations

impl Validatable for Project
[src]

Checks for certain errors

Returns true if valid

Returns list of found errors

impl IsProject for Project
[src]

Project Name

When was the event

Version of project format

Did the event actually occur

Who organized the event

Long description of the project

impl Redeemable for Project
[src]

When was the project payed

If was the project payed

When what is the MWsT of the project.

Returns a bill for the offer and one for the invoice.

Sum of sold products

impl HasEvents for Project
[src]

Produces an iCal calendar from this project.

Produces a list of DateRanges for the event.

Returns a list of Events

Returns the location of the event

impl ExportTarget<Client> for Project
[src]

impl ExportTarget<Event> for Project
[src]

impl ExportTarget<Service> for Project
[src]

impl ExportTarget<Offer> for Project
[src]

impl ExportTarget<Invoice> for Project
[src]

impl ExportTarget<Bills> for Project
[src]

impl ExportTarget<Complete> for Project
[src]

impl ExportTarget<Checks> for Project
[src]

impl ExportTarget<Errors> for Project
[src]

impl ExportTarget<Extras> for Project
[src]

impl Exportable for Project
[src]

Where to export to

Filename of the offer output file.

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

impl Storable for Project
[src]

Main Projectfile extension

creates in tempfile

For archiving

For sorting

Path to project file

Sets the project File

Tell a project its own git status after opening Read more

Ask a project for its gitstatus

Opens a yaml and parses it.

Checks against a certain key-val pair.

UNIMPLEMENTED: Checks against a certain search term.

TODO compare agains InvoiceNumber, ClientFullName, Email, event/name, invoice/official Etc

For file names

Deletes the project if the passed in closure returns true

Filename as fallback

Path to project folder

impl<'a> From<&'a Project> for Debug
[src]

Performs the conversion.

impl Clone for Project
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Project
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Project

impl Sync for Project

Blanket Implementations

impl<T> IsProjectExt for T where
    T: Storable
[src]

Number of days since creation of the project

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

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more