pub struct UpdatePurchaseOrder {Show 13 fields
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 tax_amount: Option<Decimal>,
pub shipping_cost: Option<Decimal>,
pub discount_amount: Option<Decimal>,
pub notes: Option<String>,
pub supplier_notes: Option<String>,
pub supplier_reference: Option<String>,
}Expand description
Input for updating a purchase order
Fields§
§expected_date: Option<DateTime<Utc>>Update expected date
ship_to_address: Option<String>Update ship to address
ship_to_city: Option<String>Update ship to city
ship_to_state: Option<String>Update ship to state
ship_to_postal_code: Option<String>Update ship to postal code
ship_to_country: Option<String>Update ship to country
payment_terms: Option<PaymentTerms>Update payment terms
tax_amount: Option<Decimal>Update tax amount
shipping_cost: Option<Decimal>Update shipping cost
discount_amount: Option<Decimal>Update discount amount
notes: Option<String>Update notes
supplier_notes: Option<String>Update supplier notes
supplier_reference: Option<String>Update supplier reference
Trait Implementations§
Source§impl Clone for UpdatePurchaseOrder
impl Clone for UpdatePurchaseOrder
Source§fn clone(&self) -> UpdatePurchaseOrder
fn clone(&self) -> UpdatePurchaseOrder
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 UpdatePurchaseOrder
impl Debug for UpdatePurchaseOrder
Source§impl Default for UpdatePurchaseOrder
impl Default for UpdatePurchaseOrder
Source§fn default() -> UpdatePurchaseOrder
fn default() -> UpdatePurchaseOrder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdatePurchaseOrder
impl<'de> Deserialize<'de> for UpdatePurchaseOrder
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdatePurchaseOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdatePurchaseOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdatePurchaseOrder
impl Serialize for UpdatePurchaseOrder
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 UpdatePurchaseOrder
impl RefUnwindSafe for UpdatePurchaseOrder
impl Send for UpdatePurchaseOrder
impl Sync for UpdatePurchaseOrder
impl Unpin for UpdatePurchaseOrder
impl UnsafeUnpin for UpdatePurchaseOrder
impl UnwindSafe for UpdatePurchaseOrder
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