pub struct ProcurementContract {Show 19 fields
pub contract_id: String,
pub company_code: String,
pub contract_type: ContractType,
pub status: ContractStatus,
pub vendor_id: String,
pub title: String,
pub sourcing_project_id: Option<String>,
pub bid_id: Option<String>,
pub start_date: NaiveDate,
pub end_date: NaiveDate,
pub total_value: Decimal,
pub consumed_value: Decimal,
pub terms: ContractTerms,
pub slas: Vec<ContractSla>,
pub line_items: Vec<ContractLineItem>,
pub category_id: String,
pub owner_id: String,
pub amendment_count: u32,
pub previous_contract_id: Option<String>,
}Expand description
A procurement contract.
Fields§
§contract_id: StringUnique contract identifier
company_code: StringCompany code
contract_type: ContractTypeContract type
status: ContractStatusCurrent status
vendor_id: StringVendor ID
title: StringContract title
sourcing_project_id: Option<String>Sourcing project ID (origin)
bid_id: Option<String>Winning bid ID (origin)
start_date: NaiveDateStart date
end_date: NaiveDateEnd date
total_value: DecimalTotal contract value
consumed_value: DecimalValue consumed so far
terms: ContractTermsContract terms
slas: Vec<ContractSla>SLAs
line_items: Vec<ContractLineItem>Line items
category_id: StringSpend category
owner_id: StringContract owner
amendment_count: u32Amendment count
previous_contract_id: Option<String>Previous contract ID (if renewal)
Trait Implementations§
Source§impl Clone for ProcurementContract
impl Clone for ProcurementContract
Source§fn clone(&self) -> ProcurementContract
fn clone(&self) -> ProcurementContract
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 ProcurementContract
impl Debug for ProcurementContract
Source§impl<'de> Deserialize<'de> for ProcurementContract
impl<'de> Deserialize<'de> for ProcurementContract
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 ProcurementContract
impl RefUnwindSafe for ProcurementContract
impl Send for ProcurementContract
impl Sync for ProcurementContract
impl Unpin for ProcurementContract
impl UnwindSafe for ProcurementContract
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