#[repr(C)]pub struct ActivityLimits {
pub max_customer_activity_per_epoch: u32,
pub max_merchant_activity_per_epoch: u32,
pub activity_cap_enabled: u8,
pub claim_cap_enabled: u8,
pub _padding: [u8; 6],
}
Expand description
Activity limits configuration to prevent payment splitting for more activities. This prevents gaming by capping the maximum effective activity count per epoch.
Fields§
§max_customer_activity_per_epoch: u32
Maximum customer activity count per epoch (prevents payment splitting). If a customer’s activity count exceeds this limit, it will be capped.
max_merchant_activity_per_epoch: u32
Maximum merchant activity count per epoch (prevents payment splitting). If a merchant’s activity count exceeds this limit, it will be capped.
activity_cap_enabled: u8
Whether activity capping is enabled (1=enabled, 0=disabled). When disabled, no activity limits are applied.
claim_cap_enabled: u8
Whether claim capping is enabled (1=enabled, 0=disabled). When disabled, no claim count limits per epoch are applied, used for devnet(test) When enabled, only 1 claim is allowd per epoch, used for mainnet(production)
_padding: [u8; 6]
Padding to ensure proper alignment (6 bytes to reach 16-byte boundary).
Trait Implementations§
Source§impl Clone for ActivityLimits
impl Clone for ActivityLimits
Source§fn clone(&self) -> ActivityLimits
fn clone(&self) -> ActivityLimits
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ActivityLimits
impl Debug for ActivityLimits
Source§impl PartialEq for ActivityLimits
impl PartialEq for ActivityLimits
impl Copy for ActivityLimits
impl Pod for ActivityLimits
impl StructuralPartialEq for ActivityLimits
Auto Trait Implementations§
impl Freeze for ActivityLimits
impl RefUnwindSafe for ActivityLimits
impl Send for ActivityLimits
impl Sync for ActivityLimits
impl Unpin for ActivityLimits
impl UnwindSafe for ActivityLimits
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more