2022-11-27 14:44:43 +00:00
|
|
|
//! A module about contexts of statuses.
|
|
|
|
|
2022-12-07 20:58:28 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
2022-11-29 23:50:29 +00:00
|
|
|
|
2022-11-27 14:44:43 +00:00
|
|
|
use super::status::Status;
|
|
|
|
|
|
|
|
/// A context of a status returning a list of statuses it replied to and
|
|
|
|
/// statuses replied to it.
|
2022-12-07 20:58:28 +00:00
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
2022-11-27 14:44:43 +00:00
|
|
|
pub struct Context {
|
|
|
|
/// Statuses that were replied to.
|
|
|
|
pub ancestors: Vec<Status>,
|
|
|
|
/// Statuses that replied to this status.
|
|
|
|
pub descendants: Vec<Status>,
|
|
|
|
}
|