pub struct Config { /* private fields */ }Expand description
Configuration settings for the Lago client
This struct contains all the configuration options needed to create and customize a Lago client instance, including region settings, credentials, timeouts, and retry policies.
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Creates a new configuration builder
§Returns
A new ConfigBuilder instance for constructing a configuration
Sourcepub fn region(&self) -> Result<Region, LagoError>
pub fn region(&self) -> Result<Region, LagoError>
Gets the configured region for API requests
§Returns
A Result containing the Region or an error if the region cannot be determined
Sourcepub fn credentials(&self) -> Result<Credentials, LagoError>
pub fn credentials(&self) -> Result<Credentials, LagoError>
Gets the configured credentials for API authentication
§Returns
A Result containing the Credentials or an error if credentials cannot be loaded
Sourcepub fn retry_config(&self) -> &RetryConfig
pub fn retry_config(&self) -> &RetryConfig
Sourcepub fn user_agent(&self) -> &str
pub fn user_agent(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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