pub trait RecordedContext: Send + Sync {
// Required methods
fn to_json(&self) -> Map<String, Value>;
fn get_event_queries(&self) -> HashMap<String, String>;
fn set_event_query_values(&self, event_query_values: HashMap<String, f64>);
fn record(&self);
}
Required Methods§
sourcefn to_json(&self) -> Map<String, Value>
fn to_json(&self) -> Map<String, Value>
Returns a JSON representation of the context object
This method will be implemented in foreign code, i.e: Kotlin, Swift, Python, etc…
sourcefn get_event_queries(&self) -> HashMap<String, String>
fn get_event_queries(&self) -> HashMap<String, String>
Returns a HashMap representation of the event queries that will be used in the targeting context
This method will be implemented in foreign code, i.e: Kotlin, Swift, Python, etc…
sourcefn set_event_query_values(&self, event_query_values: HashMap<String, f64>)
fn set_event_query_values(&self, event_query_values: HashMap<String, f64>)
Sets the object’s internal value for the event query values
This method will be implemented in foreign code, i.e: Kotlin, Swift, Python, etc…