pub struct RateLimitedRequestBuilder { /* private fields */ }Expand description
Rate-limited request builder - compatible API with reqwest::RequestBuilder
Implementations§
Source§impl RateLimitedRequestBuilder
impl RateLimitedRequestBuilder
Sourcepub async fn send(self) -> Result<Response, Error>
pub async fn send(self) -> Result<Response, Error>
Send the request (with rate limiting applied first)
Sourcepub fn header<K, V>(self, key: K, value: V) -> Self
pub fn header<K, V>(self, key: K, value: V) -> Self
Add a header (accepts &str for convenience - most common use case)
Sourcepub fn basic_auth<U, P>(self, username: U, password: Option<P>) -> Self
pub fn basic_auth<U, P>(self, username: U, password: Option<P>) -> Self
Basic auth
Sourcepub fn bearer_auth<T>(self, token: T) -> Self
pub fn bearer_auth<T>(self, token: T) -> Self
Bearer auth
Auto Trait Implementations§
impl !Freeze for RateLimitedRequestBuilder
impl !RefUnwindSafe for RateLimitedRequestBuilder
impl Send for RateLimitedRequestBuilder
impl Sync for RateLimitedRequestBuilder
impl Unpin for RateLimitedRequestBuilder
impl !UnwindSafe for RateLimitedRequestBuilder
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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