pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for creating customized configuration instances
This builder allows you to configure various aspects of the Lago client such as region, credentials, timeout, retry behavior, and user agent.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn region_provider(self, provider: Arc<dyn RegionProvider>) -> Self
pub fn region_provider(self, provider: Arc<dyn RegionProvider>) -> Self
Sourcepub fn credentials(self, credentials: Credentials) -> Self
pub fn credentials(self, credentials: Credentials) -> Self
Sourcepub fn credentials_provider(
self,
provider: Arc<dyn CredentialsProvider>,
) -> Self
pub fn credentials_provider( self, provider: Arc<dyn CredentialsProvider>, ) -> Self
Sourcepub fn retry_config(self, retry_config: RetryConfig) -> Self
pub fn retry_config(self, retry_config: RetryConfig) -> Self
Sourcepub fn user_agent(self, user_agent: String) -> Self
pub fn user_agent(self, user_agent: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl !RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl !UnwindSafe for ConfigBuilder
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