pub struct OnlineQueryRequest {Show 15 fields
pub inputs: HashMap<String, Value>,
pub outputs: Vec<String>,
pub context: Option<OnlineQueryContext>,
pub staleness: Option<HashMap<String, String>>,
pub include_meta: Option<bool>,
pub query_name: Option<String>,
pub correlation_id: Option<String>,
pub query_context: Option<HashMap<String, Value>>,
pub meta: Option<HashMap<String, String>>,
pub query_name_version: Option<String>,
pub now: Option<String>,
pub explain: Option<bool>,
pub store_plan_stages: Option<bool>,
pub encoding_options: Option<FeatureEncodingOptions>,
pub branch_id: Option<String>,
}Expand description
The body we POST to /v1/query/online.
Fields§
§inputs: HashMap<String, Value>Feature inputs — the “known” values you’re providing.
outputs: Vec<String>Which features you want back, e.g. ["user.age", "user.fico_score"].
context: Option<OnlineQueryContext>Contextual metadata (tags, required resolver tags).
staleness: Option<HashMap<String, String>>Per-feature staleness tolerances.
include_meta: Option<bool>Whether to include metadata (resolver FQN, cache hit, etc.) in results.
query_name: Option<String>A named query registered in the Chalk dashboard.
correlation_id: Option<String>A caller-provided correlation ID for tracing.
query_context: Option<HashMap<String, Value>>Arbitrary key-value context passed through to resolvers.
meta: Option<HashMap<String, String>>Arbitrary metadata tags attached to the query.
query_name_version: Option<String>Version of the named query to use.
now: Option<String>Override the “current time” for the query (RFC 3339 string).
explain: Option<bool>Whether to return a query execution plan (for debugging).
store_plan_stages: Option<bool>Whether to store intermediate plan stages.
encoding_options: Option<FeatureEncodingOptions>Controls how structured types (like dataclass features) are encoded.
branch_id: Option<String>Branch ID to target (for branch deployments).
Trait Implementations§
Source§impl Clone for OnlineQueryRequest
impl Clone for OnlineQueryRequest
Source§fn clone(&self) -> OnlineQueryRequest
fn clone(&self) -> OnlineQueryRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OnlineQueryRequest
impl Debug for OnlineQueryRequest
Auto Trait Implementations§
impl Freeze for OnlineQueryRequest
impl RefUnwindSafe for OnlineQueryRequest
impl Send for OnlineQueryRequest
impl Sync for OnlineQueryRequest
impl Unpin for OnlineQueryRequest
impl UnsafeUnpin for OnlineQueryRequest
impl UnwindSafe for OnlineQueryRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request