pub struct LoadQuery {
pub provider: Option<String>,
pub params: HashMap<String, KindedSlot>,
pub target_type: Option<String>,
pub column_mapping: Option<HashMap<String, String>>,
}Expand description
Generic data load request (industry-agnostic).
Fields§
§provider: Option<String>Provider name (e.g., “data”, “api”, “warehouse”). If None,
uses the default provider.
params: HashMap<String, KindedSlot>Generic parameters (arbitrary key-value). KindedSlot’s explicit
Drop/Clone impls dispatch on NativeKind so each parameter’s
heap refcount is released on teardown.
target_type: Option<String>Target type name for validation (e.g., “Candle”, “TickData”).
column_mapping: Option<HashMap<String, String>>Optional column mapping override.
Implementations§
Source§impl LoadQuery
impl LoadQuery
Sourcepub fn with_provider(self, name: &str) -> Self
pub fn with_provider(self, name: &str) -> Self
Set the provider name.
Sourcepub fn with_param(self, key: &str, value: KindedSlot) -> Self
pub fn with_param(self, key: &str, value: KindedSlot) -> Self
Add a parameter.
Sourcepub fn with_column_mapping(self, mapping: HashMap<String, String>) -> Self
pub fn with_column_mapping(self, mapping: HashMap<String, String>) -> Self
Set the column mapping.
Sourcepub fn to_data_query(&self) -> Result<DataQuery>
pub fn to_data_query(&self) -> Result<DataQuery>
Convert to a provider-specific DataQuery.
Phase 1.B: the param-decode helpers (value_to_timestamp,
as_timeframe/as_duration decoders) are deferred to Phase 2c.
Until then, this method returns a deferred error rather than
silently produce a malformed DataQuery.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadQuery
impl RefUnwindSafe for LoadQuery
impl Send for LoadQuery
impl Sync for LoadQuery
impl Unpin for LoadQuery
impl UnsafeUnpin for LoadQuery
impl UnwindSafe for LoadQuery
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