pub struct Vendor {
pub id: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub name: Option<Option<String>>,
pub address: Option<Box<Address>>,
pub contacts: Option<Option<Vec<VendorContact>>>,
pub account_number: Option<Option<String>>,
pub note: Option<Option<String>>,
pub version: Option<i32>,
pub status: Option<VendorStatus>,
}Expand description
Vendor : Represents a supplier to a seller.
Fields§
§id: Option<String>A unique Square-generated ID for the Vendor. This field is required when attempting to update a Vendor.
created_at: Option<String>An RFC 3339-formatted timestamp that indicates when the Vendor was created.
updated_at: Option<String>An RFC 3339-formatted timestamp that indicates when the Vendor was last updated.
name: Option<Option<String>>§address: Option<Box<Address>>§contacts: Option<Option<Vec<VendorContact>>>The contacts of the Vendor.
account_number: Option<Option<String>>The account number of the Vendor.
note: Option<Option<String>>A note detailing information about the Vendor.
version: Option<i32>The version of the Vendor.
status: Option<VendorStatus>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vendor
impl<'de> Deserialize<'de> for Vendor
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
impl StructuralPartialEq for Vendor
Auto Trait Implementations§
impl Freeze for Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnsafeUnpin for Vendor
impl UnwindSafe for Vendor
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