pub struct CreatePurchaseOrder {Show 16 fields
pub supplier_id: Uuid,
pub order_date: Option<DateTime<Utc>>,
pub expected_date: Option<DateTime<Utc>>,
pub ship_to_address: Option<String>,
pub ship_to_city: Option<String>,
pub ship_to_state: Option<String>,
pub ship_to_postal_code: Option<String>,
pub ship_to_country: Option<String>,
pub payment_terms: Option<PaymentTerms>,
pub currency: Option<CurrencyCode>,
pub tax_amount: Option<Decimal>,
pub shipping_cost: Option<Decimal>,
pub discount_amount: Option<Decimal>,
pub notes: Option<String>,
pub supplier_notes: Option<String>,
pub items: Vec<CreatePurchaseOrderItem>,
}Expand description
Input for creating a purchase order
Fields§
§supplier_id: UuidSupplier ID
order_date: Option<DateTime<Utc>>Order date (defaults to now)
expected_date: Option<DateTime<Utc>>Expected delivery date
ship_to_address: Option<String>Ship to address
ship_to_city: Option<String>Ship to city
ship_to_state: Option<String>Ship to state
ship_to_postal_code: Option<String>Ship to postal code
ship_to_country: Option<String>Ship to country
payment_terms: Option<PaymentTerms>Payment terms (defaults to supplier’s terms)
currency: Option<CurrencyCode>Currency (defaults to supplier’s currency)
tax_amount: Option<Decimal>Tax amount
shipping_cost: Option<Decimal>Shipping cost
discount_amount: Option<Decimal>Discount amount
notes: Option<String>Notes
supplier_notes: Option<String>Supplier notes
items: Vec<CreatePurchaseOrderItem>Line items
Trait Implementations§
Source§impl Clone for CreatePurchaseOrder
impl Clone for CreatePurchaseOrder
Source§fn clone(&self) -> CreatePurchaseOrder
fn clone(&self) -> CreatePurchaseOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreatePurchaseOrder
impl Debug for CreatePurchaseOrder
Source§impl Default for CreatePurchaseOrder
impl Default for CreatePurchaseOrder
Source§fn default() -> CreatePurchaseOrder
fn default() -> CreatePurchaseOrder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatePurchaseOrder
impl<'de> Deserialize<'de> for CreatePurchaseOrder
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreatePurchaseOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreatePurchaseOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreatePurchaseOrder
impl Serialize for CreatePurchaseOrder
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreatePurchaseOrder
impl RefUnwindSafe for CreatePurchaseOrder
impl Send for CreatePurchaseOrder
impl Sync for CreatePurchaseOrder
impl Unpin for CreatePurchaseOrder
impl UnsafeUnpin for CreatePurchaseOrder
impl UnwindSafe for CreatePurchaseOrder
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