pub struct CostAllocationConfig {
pub time_entry_project_rate: f64,
pub expense_project_rate: f64,
pub purchase_order_project_rate: f64,
pub vendor_invoice_project_rate: f64,
}Expand description
Cost allocation rates — what fraction of each document type gets linked to a project.
Fields§
§time_entry_project_rate: f64Fraction of time entries assigned to projects (0.0 to 1.0).
expense_project_rate: f64Fraction of expense reports assigned to projects (0.0 to 1.0).
purchase_order_project_rate: f64Fraction of purchase orders assigned to projects (0.0 to 1.0).
vendor_invoice_project_rate: f64Fraction of vendor invoices assigned to projects (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for CostAllocationConfig
impl Clone for CostAllocationConfig
Source§fn clone(&self) -> CostAllocationConfig
fn clone(&self) -> CostAllocationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CostAllocationConfig
impl Debug for CostAllocationConfig
Source§impl Default for CostAllocationConfig
impl Default for CostAllocationConfig
Source§impl<'de> Deserialize<'de> for CostAllocationConfig
impl<'de> Deserialize<'de> for CostAllocationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CostAllocationConfig
impl RefUnwindSafe for CostAllocationConfig
impl Send for CostAllocationConfig
impl Sync for CostAllocationConfig
impl Unpin for CostAllocationConfig
impl UnsafeUnpin for CostAllocationConfig
impl UnwindSafe for CostAllocationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more