pub struct FetchRequest {
pub source_name: Option<String>,
pub spec: InlineData,
pub cache: Option<CacheConfig>,
pub headers: HashMap<String, String>,
pub namespace: Option<String>,
pub cancel_token: Option<CancellationToken>,
}Expand description
Per-source request context. Carries the resolved spec (params already substituted) plus cache + header + namespace + cancellation hints.
Fields§
§source_name: Option<String>User-chosen name for this source within the chart spec. None for
unnamed (flat) data: forms.
spec: InlineDataFully resolved flat-form source spec — datasource, query, url,
rows, etc. with $param.name references already substituted.
cache: Option<CacheConfig>Parsed cache config from spec.cache.ttl (and auto_refresh).
headers: HashMap<String, String>Request-level HTTP headers (merged with HttpProvider defaults).
Ignored by non-HTTP providers unless they explicitly read this field.
namespace: Option<String>Tenant / workspace namespace folded into the cache key. None for
single-tenant deployments.
cancel_token: Option<CancellationToken>Optional cancellation token. Phase 3 always passes None from the
resolver; providers that opt into honoring it stay forward-compatible
with future tab-close / cancel-on-route-change wiring.
Trait Implementations§
Source§impl Clone for FetchRequest
impl Clone for FetchRequest
Source§fn clone(&self) -> FetchRequest
fn clone(&self) -> FetchRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more