pub struct SalesQuote {Show 16 fields
pub quote_id: String,
pub company_code: String,
pub customer_id: String,
pub customer_name: String,
pub quote_date: NaiveDate,
pub valid_until: NaiveDate,
pub status: QuoteStatus,
pub line_items: Vec<QuoteLineItem>,
pub total_amount: Decimal,
pub currency: String,
pub discount_percent: f64,
pub discount_amount: Decimal,
pub sales_rep_id: Option<String>,
pub sales_order_id: Option<String>,
pub lost_reason: Option<String>,
pub notes: Option<String>,
}Expand description
A sales quotation issued to a prospective or existing customer.
Fields§
§quote_id: StringUnique quote identifier
company_code: StringCompany code issuing the quote
customer_id: StringCustomer identifier
customer_name: StringCustomer name
quote_date: NaiveDateDate the quote was created
valid_until: NaiveDateDate the quote expires
status: QuoteStatusCurrent status of the quote
line_items: Vec<QuoteLineItem>Individual line items on the quote
total_amount: DecimalTotal quoted amount before discount
currency: StringCurrency code (e.g., USD, EUR)
discount_percent: f64Discount percentage applied (0.0 to 1.0)
discount_amount: DecimalCalculated discount amount
sales_rep_id: Option<String>Sales representative responsible for the quote
sales_order_id: Option<String>Linked sales order identifier (populated when status is Won)
lost_reason: Option<String>Reason the quote was lost (populated when status is Lost)
notes: Option<String>Free-text notes on the quote
Trait Implementations§
Source§impl Clone for SalesQuote
impl Clone for SalesQuote
Source§fn clone(&self) -> SalesQuote
fn clone(&self) -> SalesQuote
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 SalesQuote
impl Debug for SalesQuote
Source§impl<'de> Deserialize<'de> for SalesQuote
impl<'de> Deserialize<'de> for SalesQuote
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 SalesQuote
impl RefUnwindSafe for SalesQuote
impl Send for SalesQuote
impl Sync for SalesQuote
impl Unpin for SalesQuote
impl UnwindSafe for SalesQuote
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