Struct square_api_client::models::UpdateOrderRequest
source · [−]pub struct UpdateOrderRequest {
pub order: Order,
pub fields_to_clear: Option<Vec<String>>,
pub idempotency_key: Option<String>,
}
Expand description
This is a model struct for UpdateOrderRequest type.
Fields
order: Order
The sparse order containing only the fields to update and the version to which the update is being applied.
fields_to_clear: Option<Vec<String>>
The dot notation
paths fields
to clear. For example, line_items[uid].note
. For more information, see Deleting
fields.
idempotency_key: Option<String>
A value you specify that uniquely identifies this update request.
If you are unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version is returned.
For more information, see Idempotency.
Trait Implementations
sourceimpl Clone for UpdateOrderRequest
impl Clone for UpdateOrderRequest
sourcefn clone(&self) -> UpdateOrderRequest
fn clone(&self) -> UpdateOrderRequest
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 UpdateOrderRequest
impl Debug for UpdateOrderRequest
sourceimpl Default for UpdateOrderRequest
impl Default for UpdateOrderRequest
sourcefn default() -> UpdateOrderRequest
fn default() -> UpdateOrderRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<UpdateOrderRequest> for UpdateOrderRequest
impl PartialEq<UpdateOrderRequest> for UpdateOrderRequest
sourcefn eq(&self, other: &UpdateOrderRequest) -> bool
fn eq(&self, other: &UpdateOrderRequest) -> bool
sourceimpl Serialize for UpdateOrderRequest
impl Serialize for UpdateOrderRequest
impl Eq for UpdateOrderRequest
impl StructuralEq for UpdateOrderRequest
impl StructuralPartialEq for UpdateOrderRequest
Auto Trait Implementations
impl RefUnwindSafe for UpdateOrderRequest
impl Send for UpdateOrderRequest
impl Sync for UpdateOrderRequest
impl Unpin for UpdateOrderRequest
impl UnwindSafe for UpdateOrderRequest
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.