Struct square_api_client::models::CalculateOrderRequest
source · [−]pub struct CalculateOrderRequest {
pub order: Order,
pub proposed_rewards: Option<Vec<OrderReward>>,
}
Expand description
This is a model struct for CalculateOrderRequest type
Fields
order: Order
The order to be calculated. Expects the entire order, not a sparse update.
proposed_rewards: Option<Vec<OrderReward>>
Identifies one or more loyalty reward tiers to apply during the order calculation. The
discounts defined by the reward tiers are added to the order only to preview the effect of
applying the specified rewards. The rewards do not correspond to actual redemptions; that
is, no reward
s are created. Therefore, the reward id
s are random strings used only to
reference the reward tier.
Trait Implementations
sourceimpl Clone for CalculateOrderRequest
impl Clone for CalculateOrderRequest
sourcefn clone(&self) -> CalculateOrderRequest
fn clone(&self) -> CalculateOrderRequest
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 CalculateOrderRequest
impl Debug for CalculateOrderRequest
sourceimpl Default for CalculateOrderRequest
impl Default for CalculateOrderRequest
sourcefn default() -> CalculateOrderRequest
fn default() -> CalculateOrderRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CalculateOrderRequest> for CalculateOrderRequest
impl PartialEq<CalculateOrderRequest> for CalculateOrderRequest
sourcefn eq(&self, other: &CalculateOrderRequest) -> bool
fn eq(&self, other: &CalculateOrderRequest) -> bool
sourceimpl Serialize for CalculateOrderRequest
impl Serialize for CalculateOrderRequest
impl Eq for CalculateOrderRequest
impl StructuralEq for CalculateOrderRequest
impl StructuralPartialEq for CalculateOrderRequest
Auto Trait Implementations
impl RefUnwindSafe for CalculateOrderRequest
impl Send for CalculateOrderRequest
impl Sync for CalculateOrderRequest
impl Unpin for CalculateOrderRequest
impl UnwindSafe for CalculateOrderRequest
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.