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 duplicate 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 for BundleDiscountRuleset
impl PartialEq for BundleDiscountRuleset
impl StructuralPartialEq for BundleDiscountRuleset
Auto Trait Implementations§
impl Freeze for BundleDiscountRuleset
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