pub struct BorsaConfig {
pub routing_policy: RoutingPolicy,
pub prefer_adjusted_history: bool,
pub resampling: Resampling,
pub auto_resample_subdaily_to_daily: bool,
pub fetch_strategy: FetchStrategy,
pub merge_history_strategy: MergeStrategy,
pub provider_timeout: Duration,
pub request_timeout: Option<Duration>,
pub backoff: Option<BackoffConfig>,
}Expand description
Global configuration for the Borsa orchestrator.
Fields§
§routing_policy: RoutingPolicyUnified routing policy controlling provider and exchange ordering.
- Provider rules select and order eligible connectors; unknown connector
keys are rejected during
borsa’s build step. - Exchange preferences influence search de-duplication only.
prefer_adjusted_history: boolPrefer adjusted history series when merging.
resampling: ResamplingForced resampling mode for merged history.
auto_resample_subdaily_to_daily: boolIf request interval is subdaily, resample to daily automatically.
fetch_strategy: FetchStrategyStrategy for fetching from multiple providers.
merge_history_strategy: MergeStrategyStrategy for merging history data from multiple providers.
provider_timeout: DurationTimeout for individual provider requests.
request_timeout: Option<Duration>Optional overall request timeout for fan-out aggregations (e.g., history/search). If set, operations that aggregate multiple provider calls are bounded by this deadline.
backoff: Option<BackoffConfig>Optional backoff configuration used by streaming.
Trait Implementations§
Source§impl Clone for BorsaConfig
impl Clone for BorsaConfig
Source§fn clone(&self) -> BorsaConfig
fn clone(&self) -> BorsaConfig
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 BorsaConfig
impl Debug for BorsaConfig
Source§impl Default for BorsaConfig
impl Default for BorsaConfig
Source§impl<'de> Deserialize<'de> for BorsaConfig
impl<'de> Deserialize<'de> for BorsaConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BorsaConfig
impl RefUnwindSafe for BorsaConfig
impl Send for BorsaConfig
impl Sync for BorsaConfig
impl Unpin for BorsaConfig
impl UnwindSafe for BorsaConfig
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