pub struct CustomerProfile {
pub customer_id: String,
pub total_sessions: usize,
pub total_turns: usize,
pub first_interaction: DateTime<Utc>,
pub last_interaction: DateTime<Utc>,
pub topics: Vec<String>,
pub sentiment_trend: String,
}Expand description
Aggregated customer context built from conversation history.
Fields§
§customer_id: StringThe customer identifier.
total_sessions: usizeHow many distinct sessions this customer has had.
total_turns: usizeTotal number of conversation turns across all sessions.
first_interaction: DateTime<Utc>Timestamp of the first recorded interaction.
last_interaction: DateTime<Utc>Timestamp of the most recent interaction.
topics: Vec<String>Topics extracted from conversation content (deduplicated keywords).
sentiment_trend: StringOverall sentiment trend: “positive”, “neutral”, or “negative”.
Trait Implementations§
Source§impl Clone for CustomerProfile
impl Clone for CustomerProfile
Source§fn clone(&self) -> CustomerProfile
fn clone(&self) -> CustomerProfile
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 CustomerProfile
impl Debug for CustomerProfile
Source§impl<'de> Deserialize<'de> for CustomerProfile
impl<'de> Deserialize<'de> for CustomerProfile
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 CustomerProfile
impl RefUnwindSafe for CustomerProfile
impl Send for CustomerProfile
impl Sync for CustomerProfile
impl Unpin for CustomerProfile
impl UnsafeUnpin for CustomerProfile
impl UnwindSafe for CustomerProfile
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