twilight_validate::request

Function get_entitlements_limit

source
pub const fn get_entitlements_limit(limit: u8) -> Result<(), ValidationError>
Expand description

Ensure that the limit for the Get Entitlements endpoint is correct.

The limit must be at least GET_ENTITLEMENTS_LIMIT_MIN and at most GET_ENTITLEMENTS_LIMIT_MAX. This is based on this documentation entry.

ยงErrors

Returns an error of type GetEntitlements if the limit is invalid.