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