pub struct UpsertStateRequest {
pub user_id: String,
pub source: SourceInput,
pub confidence: f32,
pub axes: BTreeMap<String, f32>,
pub message: Option<String>,
}Expand description
Request body for upserting state.
Fields§
§user_id: StringUser ID to update state for.
source: SourceInputSource of the state data.
confidence: f32Confidence level of the state data.
axes: BTreeMap<String, f32>Axis values to set.
message: Option<String>Optional message text for inference (requires “inference” feature). When provided, axes are inferred from the message and merged with explicit axes. Explicit axes always override inferred values.
Trait Implementations§
Source§impl Debug for UpsertStateRequest
impl Debug for UpsertStateRequest
Source§impl<'de> Deserialize<'de> for UpsertStateRequest
impl<'de> Deserialize<'de> for UpsertStateRequest
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 UpsertStateRequest
impl RefUnwindSafe for UpsertStateRequest
impl Send for UpsertStateRequest
impl Sync for UpsertStateRequest
impl Unpin for UpsertStateRequest
impl UnwindSafe for UpsertStateRequest
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more