mastodon_async_entities/context.rs
1//! A module about contexts of statuses.
2
3use serde::{Deserialize, Serialize};
4
5use super::status::Status;
6
7/// A context of a status returning a list of statuses it replied to and
8/// statuses replied to it.
9#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
10pub struct Context {
11 /// Statuses that were replied to.
12 pub ancestors: Vec<Status>,
13 /// Statuses that replied to this status.
14 pub descendants: Vec<Status>,
15}