pub struct RequestMeta<'a> {
pub method: &'a Method,
pub path: &'a str,
pub query: &'a [(String, String)],
pub costs: &'a [Cost],
}Expand description
The request an attempt is about to send, as a throttle sees it.
Fields§
§method: &'a MethodThe HTTP method.
path: &'a strThe path, without the query.
query: &'a [(String, String)]The query parameters.
costs: &'a [Cost]What the request costs each layer that does not count requests.
Trait Implementations§
Source§impl<'a> Clone for RequestMeta<'a>
impl<'a> Clone for RequestMeta<'a>
impl<'a> Copy for RequestMeta<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestMeta<'a>
impl<'a> RefUnwindSafe for RequestMeta<'a>
impl<'a> Send for RequestMeta<'a>
impl<'a> Sync for RequestMeta<'a>
impl<'a> Unpin for RequestMeta<'a>
impl<'a> UnsafeUnpin for RequestMeta<'a>
impl<'a> UnwindSafe for RequestMeta<'a>
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