Struct square_api_client::models::CreateOrderRequest
source · Expand description
This is a model struct for CreateOrderRequest type
Fields§
§order: Option<Order>
The order to create. If this field is set, the only other top-level field that can be set is
the idempotency_key
.
idempotency_key: Option<String>
A value you specify that uniquely identifies this order among orders you have created.
If you are unsure whether a particular order was created successfully, you can try it again with the same idempotency key without worrying about creating duplicate orders.
For more information, see Idempotency.
Trait Implementations§
source§impl Clone for CreateOrderRequest
impl Clone for CreateOrderRequest
source§fn clone(&self) -> CreateOrderRequest
fn clone(&self) -> CreateOrderRequest
Returns a copy 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 CreateOrderRequest
impl Debug for CreateOrderRequest
source§impl Default for CreateOrderRequest
impl Default for CreateOrderRequest
source§fn default() -> CreateOrderRequest
fn default() -> CreateOrderRequest
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateOrderRequest> for CreateOrderRequest
impl PartialEq<CreateOrderRequest> for CreateOrderRequest
source§fn eq(&self, other: &CreateOrderRequest) -> bool
fn eq(&self, other: &CreateOrderRequest) -> bool
source§impl Serialize for CreateOrderRequest
impl Serialize for CreateOrderRequest
impl Eq for CreateOrderRequest
impl StructuralEq for CreateOrderRequest
impl StructuralPartialEq for CreateOrderRequest
Auto Trait Implementations§
impl RefUnwindSafe for CreateOrderRequest
impl Send for CreateOrderRequest
impl Sync for CreateOrderRequest
impl Unpin for CreateOrderRequest
impl UnwindSafe for CreateOrderRequest
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.