pub struct BundleDiscountRuleset {
pub max_purchase_size: i32,
pub bundle_size: i32,
pub bundle_discount_size: i32,
pub bonus_threshold: i32,
pub additional_bonus_discount_threshold_quantities: Vec<i32>,
}
Fields§
§max_purchase_size: i32
§bundle_size: i32
§bundle_discount_size: i32
§bonus_threshold: i32
§additional_bonus_discount_threshold_quantities: Vec<i32>
Trait Implementations§
source§impl BaseParser for BundleDiscountRuleset
impl BaseParser for BundleDiscountRuleset
fn parse(packet: &mut HPacket) -> Self
fn append_to_packet(&self, packet: &mut HPacket)
fn get_direction() -> HDirection
fn get_packet_name() -> String
source§impl Clone for BundleDiscountRuleset
impl Clone for BundleDiscountRuleset
source§fn clone(&self) -> BundleDiscountRuleset
fn clone(&self) -> BundleDiscountRuleset
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 BundleDiscountRuleset
impl Debug for BundleDiscountRuleset
source§impl Default for BundleDiscountRuleset
impl Default for BundleDiscountRuleset
source§fn default() -> BundleDiscountRuleset
fn default() -> BundleDiscountRuleset
Returns the “default value” for a type. Read more
source§impl PartialEq<BundleDiscountRuleset> for BundleDiscountRuleset
impl PartialEq<BundleDiscountRuleset> for BundleDiscountRuleset
source§fn eq(&self, other: &BundleDiscountRuleset) -> bool
fn eq(&self, other: &BundleDiscountRuleset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BundleDiscountRuleset
Auto Trait Implementations§
impl RefUnwindSafe for BundleDiscountRuleset
impl Send for BundleDiscountRuleset
impl Sync for BundleDiscountRuleset
impl Unpin for BundleDiscountRuleset
impl UnwindSafe for BundleDiscountRuleset
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