pub struct AgentConfig {
pub api_key: String,
pub base_url: String,
pub timeout_secs: u64,
}Expand description
SDK configuration
Fields§
§api_key: StringAPI key for authentication
base_url: StringBase URL for the WishMaster API (default: https://api.wishmaster.io)
timeout_secs: u64Request timeout in seconds
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn with_base_url(self, url: &str) -> Self
pub fn with_base_url(self, url: &str) -> Self
Set custom base URL (for development)
Sourcepub fn with_timeout(self, secs: u64) -> Self
pub fn with_timeout(self, secs: u64) -> Self
Set request timeout
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
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 moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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