Struct ably::http::RequestBuilder
source · pub struct RequestBuilder<'a> { /* private fields */ }
Expand description
A builder to construct a HTTP request to the Ably REST API.
Implementations
sourceimpl<'a> RequestBuilder<'a>
impl<'a> RequestBuilder<'a>
pub fn new(rest: &'a Rest, inner: RequestBuilder, format: Format) -> Self
sourcepub fn params<T: Serialize + ?Sized>(self, params: &T) -> Self
pub fn params<T: Serialize + ?Sized>(self, params: &T) -> Self
Modify the query params of the request, adding the parameters provided.
pub fn authenticate(self, authenticate: bool) -> Self
pub fn basic_auth<U: Display, P: Display>(
self,
username: U,
password: Option<P>
) -> Self
pub fn bearer_auth<T: Display>(self, token: T) -> Self
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RequestBuilder<'a>
impl<'a> Send for RequestBuilder<'a>
impl<'a> Sync for RequestBuilder<'a>
impl<'a> Unpin for RequestBuilder<'a>
impl<'a> !UnwindSafe for RequestBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more