pub struct GameDbClientBuilder { /* private fields */ }Expand description
Builder for configuring a GameDbClient.
Implementations§
Source§impl GameDbClientBuilder
impl GameDbClientBuilder
pub fn new(token: impl Into<String>) -> Self
Sourcepub fn http_client(self, client: Client) -> Self
pub fn http_client(self, client: Client) -> Self
Use a custom reqwest::Client (e.g. custom timeout, proxy, TLS settings).
Sourcepub fn build(self) -> GameDbClient
pub fn build(self) -> GameDbClient
Build the GameDbClient.
Trait Implementations§
Source§impl Clone for GameDbClientBuilder
impl Clone for GameDbClientBuilder
Source§fn clone(&self) -> GameDbClientBuilder
fn clone(&self) -> GameDbClientBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GameDbClientBuilder
impl !UnwindSafe for GameDbClientBuilder
impl Freeze for GameDbClientBuilder
impl Send for GameDbClientBuilder
impl Sync for GameDbClientBuilder
impl Unpin for GameDbClientBuilder
impl UnsafeUnpin for GameDbClientBuilder
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