pub struct SdkConfig { /* private fields */ }Expand description
Runtime configuration for the FerrisKey SDK.
§Immutability
Once built, SdkConfig is immutable. This prevents accidental mutation
of configuration during request processing and enables safe sharing
across async tasks without locks.
Implementations§
Source§impl SdkConfig
impl SdkConfig
Sourcepub fn new(base_url: impl Into<String>, auth: AuthStrategy) -> Self
pub fn new(base_url: impl Into<String>, auth: AuthStrategy) -> Self
Create a new SDK configuration.
Prefer using Self::builder() for more complex configurations.
Sourcepub fn builder(base_url: impl Into<String>) -> SdkConfigBuilder<BaseUrlSet>
pub fn builder(base_url: impl Into<String>) -> SdkConfigBuilder<BaseUrlSet>
Create a typed builder with the required base URL.
The builder ensures the base URL is always provided.
Sourcepub const fn auth(&self) -> &AuthStrategy
pub const fn auth(&self) -> &AuthStrategy
Access the authentication strategy.
Sourcepub fn user_agent(&self) -> Option<&str>
pub fn user_agent(&self) -> Option<&str>
Access the user-agent string.
Trait Implementations§
impl Eq for SdkConfig
impl StructuralPartialEq for SdkConfig
Auto Trait Implementations§
impl Freeze for SdkConfig
impl RefUnwindSafe for SdkConfig
impl Send for SdkConfig
impl Sync for SdkConfig
impl Unpin for SdkConfig
impl UnsafeUnpin for SdkConfig
impl UnwindSafe for SdkConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.