pub struct CreateSupplier {Show 17 fields
pub name: String,
pub supplier_code: Option<String>,
pub contact_name: Option<String>,
pub email: Option<String>,
pub phone: Option<String>,
pub website: Option<String>,
pub address: Option<String>,
pub city: Option<String>,
pub state: Option<String>,
pub postal_code: Option<String>,
pub country: Option<String>,
pub tax_id: Option<String>,
pub payment_terms: Option<PaymentTerms>,
pub currency: Option<CurrencyCode>,
pub lead_time_days: Option<i32>,
pub minimum_order: Option<Decimal>,
pub notes: Option<String>,
}Expand description
Input for creating a supplier
Fields§
§name: StringCompany name
supplier_code: Option<String>Supplier code (auto-generated if not provided)
contact_name: Option<String>Contact person
email: Option<String>phone: Option<String>Phone
website: Option<String>Website
address: Option<String>Address
city: Option<String>City
state: Option<String>State
postal_code: Option<String>Postal code
country: Option<String>Country
tax_id: Option<String>Tax ID
payment_terms: Option<PaymentTerms>Payment terms
currency: Option<CurrencyCode>Currency (defaults to USD)
lead_time_days: Option<i32>Lead time in days
minimum_order: Option<Decimal>Minimum order amount
notes: Option<String>Notes
Trait Implementations§
Source§impl Clone for CreateSupplier
impl Clone for CreateSupplier
Source§fn clone(&self) -> CreateSupplier
fn clone(&self) -> CreateSupplier
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 CreateSupplier
impl Debug for CreateSupplier
Source§impl Default for CreateSupplier
impl Default for CreateSupplier
Source§fn default() -> CreateSupplier
fn default() -> CreateSupplier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateSupplier
impl<'de> Deserialize<'de> for CreateSupplier
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateSupplier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateSupplier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateSupplier
impl Serialize for CreateSupplier
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 CreateSupplier
impl RefUnwindSafe for CreateSupplier
impl Send for CreateSupplier
impl Sync for CreateSupplier
impl Unpin for CreateSupplier
impl UnsafeUnpin for CreateSupplier
impl UnwindSafe for CreateSupplier
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