pub enum Limit {
Ten,
TwentyFive,
Fifty,
Hundred,
}
Expand description
The maximum amount of instances to return from an endpoint. Used as a parameter in various methods that call endpoints.
This is an enum instead of an integer as these are usually the only values that are accepted by Roblox for the limit parameter.
This is the most common limit used on Roblox endpoints. However, not all endpoints use this limit. Some alternative limits are as follows:
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Limit
impl<'de> Deserialize<'de> for Limit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Limit
impl Ord for Limit
source§impl PartialEq for Limit
impl PartialEq for Limit
source§impl PartialOrd for Limit
impl PartialOrd for Limit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Limit
impl Eq for Limit
impl StructuralPartialEq for Limit
Auto Trait Implementations§
impl Freeze for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnwindSafe for Limit
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.