pub struct ClientBuilder { /* private fields */ }
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn new() -> ClientBuilder
pub fn new() -> ClientBuilder
Constructs a new ClientBuilder
Sourcepub fn api_key(self, api_key: impl Into<String>) -> ClientBuilder
pub fn api_key(self, api_key: impl Into<String>) -> ClientBuilder
API key (token) for Kodik API
use kodik_api::ClientBuilder;
ClientBuilder::new()
.api_key("q8p5vnf9crt7xfyzke4iwc6r5rvsurv7");
Sourcepub fn api_url(self, api_url: impl Into<String>) -> ClientBuilder
pub fn api_url(self, api_url: impl Into<String>) -> ClientBuilder
Base URL for Kodik API
Default: https://kodikapi.com
use kodik_api::ClientBuilder;
ClientBuilder::new()
.api_url("https://koooooooooooooodik.com/api");
Sourcepub fn proxy(self, proxy: Proxy) -> ClientBuilder
pub fn proxy(self, proxy: Proxy) -> ClientBuilder
use kodik_api::ClientBuilder;
ClientBuilder::new()
.proxy(reqwest::Proxy::http("https://my.prox").unwrap());
Sourcepub fn custom_reqwest_builder(
self,
builder: ReqwestClientBuilder,
) -> ClientBuilder
pub fn custom_reqwest_builder( self, builder: ReqwestClientBuilder, ) -> ClientBuilder
use kodik_api::ClientBuilder;
ClientBuilder::new()
.custom_reqwest_builder(reqwest::ClientBuilder::new());
Trait Implementations§
Source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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