pub struct Config {
pub api_key: String,
pub base_url: String,
pub wss_url: String,
pub timeout: Duration,
pub retry_count: u32,
}Expand description
Configures the finlight client. Only api_key is required; the remaining
fields default to the documented values shared by all sibling clients.
Fields§
§api_key: StringYour finlight API key (required).
base_url: StringREST endpoint, default https://api.finlight.me.
wss_url: StringWebSocket endpoint, default wss://wss.finlight.me.
timeout: DurationPer-request timeout (also the WebSocket dial timeout), default 5s.
retry_count: u32Total request attempts (initial try + retries), default 3.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Configwhere
RawVecInner: Send,
impl Sync for Configwhere
RawVecInner: Sync,
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Configwhere
RawVecInner: UnwindSafe,
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