pub struct Builder { /* private fields */ }
Expand description
Client
builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new Builder
.
Same as Client::builder
.
Sourcepub fn with_api_key(self, api_key: &str) -> Self
pub fn with_api_key(self, api_key: &str) -> Self
Attaches the API key
.
Sourcepub fn with_base_url(self, base_url: Url) -> Self
pub fn with_base_url(self, base_url: Url) -> Self
Overrides the base URL
.
Default value: http://127.0.0.1:9099/
Sourcepub fn with_user_agent(self, user_agent: &str) -> Self
pub fn with_user_agent(self, user_agent: &str) -> Self
Overrides the User-Agent
header.
Default value: Glide/0.1.0 (Rust; Ver 1.70.0)
Sourcepub fn with_http_client(self, client: RwClient) -> Self
pub fn with_http_client(self, client: RwClient) -> Self
Overrides the HTTP
client.
Default value: reqwest::Client::default()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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