pub struct SourceDocument {
pub id: String,
pub entity_id: String,
pub date: NaiveDate,
pub amount: Decimal,
pub source_type: CostSourceType,
pub hours: Option<Decimal>,
}Expand description
A minimal source document reference for linking.
Fields§
§id: StringDocument ID
entity_id: StringEntity (company code) that created the document
date: NaiveDateDate of the document
amount: DecimalAmount on the document
source_type: CostSourceTypeSource type
hours: Option<Decimal>Hours (for time entries)
Trait Implementations§
Source§impl Clone for SourceDocument
impl Clone for SourceDocument
Source§fn clone(&self) -> SourceDocument
fn clone(&self) -> SourceDocument
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 moreAuto Trait Implementations§
impl Freeze for SourceDocument
impl RefUnwindSafe for SourceDocument
impl Send for SourceDocument
impl Sync for SourceDocument
impl Unpin for SourceDocument
impl UnsafeUnpin for SourceDocument
impl UnwindSafe for SourceDocument
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