strava_wrapper/models/
comment.rs1use super::athlete::SummaryAthlete;
4use chrono::{DateTime, Utc};
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct SimpleComment {
9 pub id: Option<i64>,
10 pub activity_id: Option<i64>,
11 pub text: Option<String>,
12 pub athlete: Option<SummaryAthlete>,
13 pub created_at: Option<DateTime<Utc>>,
14}
15
16#[derive(Debug, Clone, Deserialize, PartialEq)]
17pub struct Comment {
18 pub id: i64,
19 pub activity_id: i64,
20 pub post_id: Option<i64>,
21 pub resource_state: i32,
22 pub text: String,
23 pub mentions_metadata: Option<String>,
24 pub created_at: String,
25 pub athlete: SummaryAthlete,
26 pub cursor: Option<String>,
27 pub reaction_count: i32,
28 pub has_reacted: bool,
29}