openlark-analytics 0.19.0

飞书开放平台数据分析模块 - 搜索服务、数据分析 API (14 APIs)
Documentation
//! 通用数据模型

use serde::{Deserialize, Serialize};

/// 搜索结果
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SearchResult {
    /// 结果 ID
    pub id: String,
    /// 结果标题
    pub title: String,
    /// 结果摘要
    pub summary: Option<String>,
    /// 结果类型
    pub result_type: String,
    /// 相关度分数
    pub score: f64,
}

/// 搜索统计
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SearchStats {
    /// 总结果数
    pub total: u32,
    /// 查询时间(毫秒)
    pub query_time_ms: u32,
    /// 搜索的页面数
    pub page_count: u32,
}

pub mod constants;