pub struct ClientBuilder { /* private fields */ }
Expand description
ClientBuilder
is a builder for Client
Implementations§
Source§impl ClientBuilder
ClientBuilder
allows customizing various options for the Client
impl ClientBuilder
ClientBuilder
allows customizing various options for the Client
Sourcepub fn new(api_key: String) -> ClientBuilder
pub fn new(api_key: String) -> ClientBuilder
Construct a builder to customize and then build the client.
Sourcepub fn api_url(&mut self, api_url: Url) -> &mut Self
pub fn api_url(&mut self, api_url: Url) -> &mut Self
Set an API url to connect to. By default, the public ngrok API will be used.
Sourcepub fn reqwest_client(&mut self, client: Client) -> &mut Self
pub fn reqwest_client(&mut self, client: Client) -> &mut Self
Set a custom reqwest client to use for http requests to the ngrok API.
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