pub struct ClientConfig {
pub base_url: String,
pub api_key: String,
pub timeout: Duration,
}Expand description
Configuration for the Ironflow SDK client.
§Examples
use ironflow_sdk::client::ClientConfig;
use std::time::Duration;
let config = ClientConfig {
base_url: "https://ironflow.example.com".to_string(),
api_key: "my-api-key".to_string(),
timeout: Duration::from_secs(60),
};Fields§
§base_url: StringBase URL of the Ironflow API (e.g. https://ironflow.example.com).
api_key: StringAPI key for Bearer authentication.
timeout: DurationHTTP request timeout.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin 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