pub struct IdkollenClientBuilder { /* private fields */ }Expand description
Builder for constructing an IdkollenClient or [IdkollenBlockingClient].
Implementations§
Source§impl IdkollenClientBuilder
impl IdkollenClientBuilder
pub fn new( client_id: impl Into<String>, client_secret: impl Into<String>, ) -> Self
pub fn environment(self, env: Environment) -> Self
pub fn base_url(self, url: impl Into<String>) -> Self
Sourcepub fn user_agent(self, ua: impl Into<String>) -> Self
pub fn user_agent(self, ua: impl Into<String>) -> Self
Override the User-Agent header sent with every request.
pub fn http_client(self, client: Client) -> Self
pub fn build(self) -> Result<IdkollenClient, IdkollenError>
Auto Trait Implementations§
impl Freeze for IdkollenClientBuilder
impl !RefUnwindSafe for IdkollenClientBuilder
impl Send for IdkollenClientBuilder
impl Sync for IdkollenClientBuilder
impl Unpin for IdkollenClientBuilder
impl UnsafeUnpin for IdkollenClientBuilder
impl !UnwindSafe for IdkollenClientBuilder
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