pub struct UserBehaviorProfile {
pub user_id: Option<String>,
pub summary: String,
pub observation_windows: u32,
pub frequent_foreground_apps: Vec<(String, u32)>,
pub frequent_notifying_apps: Vec<(String, u32)>,
pub frequent_semantic_hints: Vec<(SemanticHint, u32)>,
pub action_successes: Vec<(String, u32)>,
pub action_denials: Vec<(String, u32)>,
pub action_failures: Vec<(String, u32)>,
pub last_updated_window_id: Option<String>,
}Expand description
Rolling, privacy-preserving summary of observed user behavior.
Fields§
§user_id: Option<String>Optional pseudonymous user identifier. Used by personalized models such
as PredictiveLocalBackend to key per-user transition tables. This is
intentionally optional: older serialized inputs and contexts where the
collector has not yet supplied a user id deserialize to None, and the
backend falls back to global/non-personalized signals.
summary: String§observation_windows: u32§frequent_foreground_apps: Vec<(String, u32)>§frequent_notifying_apps: Vec<(String, u32)>§frequent_semantic_hints: Vec<(SemanticHint, u32)>§action_successes: Vec<(String, u32)>§action_denials: Vec<(String, u32)>§action_failures: Vec<(String, u32)>§last_updated_window_id: Option<String>Trait Implementations§
Source§impl Clone for UserBehaviorProfile
impl Clone for UserBehaviorProfile
Source§fn clone(&self) -> UserBehaviorProfile
fn clone(&self) -> UserBehaviorProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserBehaviorProfile
impl Debug for UserBehaviorProfile
Source§impl Default for UserBehaviorProfile
impl Default for UserBehaviorProfile
Source§fn default() -> UserBehaviorProfile
fn default() -> UserBehaviorProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserBehaviorProfile
impl<'de> Deserialize<'de> for UserBehaviorProfile
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 UserBehaviorProfile
impl RefUnwindSafe for UserBehaviorProfile
impl Send for UserBehaviorProfile
impl Sync for UserBehaviorProfile
impl Unpin for UserBehaviorProfile
impl UnsafeUnpin for UserBehaviorProfile
impl UnwindSafe for UserBehaviorProfile
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