pub struct GrokClientBuilder { /* private fields */ }Expand description
Builder for configuring a GrokClient
Implementations§
Source§impl GrokClientBuilder
impl GrokClientBuilder
Sourcepub fn base_url(self, url: impl Into<String>) -> Self
pub fn base_url(self, url: impl Into<String>) -> Self
Set a custom base URL (for testing or proxies)
Sourcepub fn timeout_secs(self, timeout: u64) -> Self
pub fn timeout_secs(self, timeout: u64) -> Self
Set request timeout in seconds
Sourcepub fn max_retries(self, retries: u32) -> Self
pub fn max_retries(self, retries: u32) -> Self
Set maximum number of retry attempts
Sourcepub fn retry_config(self, config: RetryConfig) -> Self
pub fn retry_config(self, config: RetryConfig) -> Self
Set a custom retry configuration
Sourcepub fn build(self) -> Result<GrokClient>
pub fn build(self) -> Result<GrokClient>
Build the GrokClient
Trait Implementations§
Source§impl Default for GrokClientBuilder
impl Default for GrokClientBuilder
Source§fn default() -> GrokClientBuilder
fn default() -> GrokClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GrokClientBuilder
impl RefUnwindSafe for GrokClientBuilder
impl Send for GrokClientBuilder
impl Sync for GrokClientBuilder
impl Unpin for GrokClientBuilder
impl UnsafeUnpin for GrokClientBuilder
impl UnwindSafe for GrokClientBuilder
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