Enum asciii::project::ComputedField
[−]
pub enum ComputedField { Responsible, OfferNumber, InvoiceNumber, InvoiceNumberLong, Name, Final, Age, OurBad, TheirBad, Year, Employees, ClientFullName, Wages, Deserializes, SortIndex, Date, Format, Dir, Invalid, }
Project::field()
allows accessing fields within the raw yaml
data structure.
Computed fields are fields that are not present in the document but computed.
ComputedFields
is an automatically generated type that allows iterating of the variants of
this Enum.
Variants
Responsible
Usually storage
, or in legacy part of signature
OfferNumber
Consecutive Offer number
InvoiceNumber
Pretty version of invoice/number
: "R042
"
InvoiceNumberLong
Pretty version of invoice/number
including year: "R2016-042
"
Name
Overall Cost Project, including taxes
Final
Amount of money owed by the customer
Age
Age of the Project in days
OurBad
Time in weeks it took to write the invoice
TheirBad
Time in weeks it took the custumer to pay invoice
Year
Year of the event
Employees
List of emplyees
ClientFullName
Full Name of the customer
Wages
Sum of the wages payed to the employees
Deserializes
experimental indicates whether the project file adheres to the spec
SortIndex
Sorting index
Date
Date of the main event
Format
Version of the project file format
Dir
Directory the project is currently stored in
Invalid
Invalid Option
Methods
impl ComputedField
pub fn iter_variants() -> ComputedFields
impl ComputedField
pub fn iter_variant_names() -> ComputedFieldNames
impl ComputedField
[src]
Trait Implementations
impl Debug for ComputedField
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for ComputedField
type Err = ParseEnumError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl<'a> From<&'a str> for ComputedField
[src]
fn from(s: &'a str) -> ComputedField
[src]
Performs the conversion.