pub struct SearchStatistic {
pub id: String,
pub query: String,
pub query_normalized: String,
pub result_count: usize,
pub search_time_ms: u64,
pub timestamp: DateTime<Utc>,
pub user_ip: Option<String>,
}
Expand description
Represents search analytics and statistics data.
Tracks individual search operations for performance monitoring and analytics.
Fields§
§id: String
Unique identifier for the search operation
query: String
Original search query as entered by user
query_normalized: String
Normalized query (lowercase, trimmed) for aggregation
result_count: usize
Number of results returned for this search
search_time_ms: u64
Time taken to process the search in milliseconds
timestamp: DateTime<Utc>
Timestamp when the search was performed
user_ip: Option<String>
Client IP address for future analytics (optional)
Trait Implementations§
Source§impl Clone for SearchStatistic
impl Clone for SearchStatistic
Source§fn clone(&self) -> SearchStatistic
fn clone(&self) -> SearchStatistic
Returns a copy 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 SearchStatistic
impl Debug for SearchStatistic
Source§impl<'de> Deserialize<'de> for SearchStatistic
impl<'de> Deserialize<'de> for SearchStatistic
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 SearchStatistic
impl RefUnwindSafe for SearchStatistic
impl Send for SearchStatistic
impl Sync for SearchStatistic
impl Unpin for SearchStatistic
impl UnwindSafe for SearchStatistic
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