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
sourceimpl Clone for CreateOrderRequest
impl Clone for CreateOrderRequest
sourcefn clone(&self) -> CreateOrderRequest
fn clone(&self) -> CreateOrderRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CreateOrderRequest
impl Debug for CreateOrderRequest
sourceimpl Default for CreateOrderRequest
impl Default for CreateOrderRequest
sourcefn default() -> CreateOrderRequest
fn default() -> CreateOrderRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateOrderRequest> for CreateOrderRequest
impl PartialEq<CreateOrderRequest> for CreateOrderRequest
sourcefn eq(&self, other: &CreateOrderRequest) -> bool
fn eq(&self, other: &CreateOrderRequest) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.