pub trait ClientixRequestBuilder {
// Required methods
fn config(&mut self) -> &mut RequestConfig;
fn result(&mut self) -> &mut ClientixResult<()>;
// Provided methods
fn path(self, path: &str) -> Self
where Self: Sized { ... }
fn query(self, key: &str, value: &str) -> Self
where Self: Sized { ... }
fn queries(self, queries: HashMap<String, String>) -> Self
where Self: Sized { ... }
fn header(self, key: &str, value: &str, sensitive: bool) -> Self
where Self: Sized { ... }
fn headers(self, headers: HashMap<String, String>) -> Self
where Self: Sized { ... }
fn basic_auth(self, username: &str, password: &str) -> Self
where Self: Sized { ... }
fn bearer_auth(self, token: &str) -> Self
where Self: Sized { ... }
fn body<T: Serialize>(self, body: T, content_type: ContentType) -> Self
where Self: Sized { ... }
}Required Methods§
fn config(&mut self) -> &mut RequestConfig
fn result(&mut self) -> &mut ClientixResult<()>
Provided Methods§
fn path(self, path: &str) -> Selfwhere
Self: Sized,
fn query(self, key: &str, value: &str) -> Selfwhere
Self: Sized,
fn queries(self, queries: HashMap<String, String>) -> Selfwhere
Self: Sized,
fn header(self, key: &str, value: &str, sensitive: bool) -> Selfwhere
Self: Sized,
fn headers(self, headers: HashMap<String, String>) -> Selfwhere
Self: Sized,
fn basic_auth(self, username: &str, password: &str) -> Selfwhere
Self: Sized,
fn bearer_auth(self, token: &str) -> Selfwhere
Self: Sized,
fn body<T: Serialize>(self, body: T, content_type: ContentType) -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".