#[non_exhaustive]pub struct Limited<T> {
pub rate_limit: RateLimit,
pub body: T,
}Expand description
This struct is used for rate limited endpoint
rate_limit is for the rate limit metadata
body is the response data
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rate_limit: RateLimit§body: TImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Limited<T>where
T: Freeze,
impl<T> RefUnwindSafe for Limited<T>where
T: RefUnwindSafe,
impl<T> Send for Limited<T>where
T: Send,
impl<T> Sync for Limited<T>where
T: Sync,
impl<T> Unpin for Limited<T>where
T: Unpin,
impl<T> UnwindSafe for Limited<T>where
T: UnwindSafe,
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