pub struct ClientConfig {
pub base_url: String,
pub access_token: String,
pub retry_config: RetryConfig,
pub cache_config: CacheConfig,
pub rate_limit_config: RateLimitConfig,
pub auto_paginate: bool,
}Expand description
Client configuration builder
Provides a fluent API for configuring the Salesforce client with all enterprise features.
Fields§
§base_url: StringBase URL of the Salesforce instance
access_token: StringAccess token for authentication
retry_config: RetryConfigRetry configuration
cache_config: CacheConfigCache configuration
rate_limit_config: RateLimitConfigRate limit configuration
auto_paginate: boolEnable automatic pagination
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn new(base_url: impl Into<String>, access_token: impl Into<String>) -> Self
pub fn new(base_url: impl Into<String>, access_token: impl Into<String>) -> Self
Create a new configuration with defaults
Sourcepub fn with_retry(self, config: RetryConfig) -> Self
pub fn with_retry(self, config: RetryConfig) -> Self
Configure retry behavior
Sourcepub fn with_cache(self, config: CacheConfig) -> Self
pub fn with_cache(self, config: CacheConfig) -> Self
Configure caching
Sourcepub fn with_rate_limit(self, config: RateLimitConfig) -> Self
pub fn with_rate_limit(self, config: RateLimitConfig) -> Self
Configure rate limiting
Sourcepub fn no_pagination(self) -> Self
pub fn no_pagination(self) -> Self
Disable automatic pagination
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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