mastodon-async/entities/src/context.rs

16 lines
442 B
Rust

//! A module about contexts of statuses.
use serde::{Deserialize, Serialize};
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, Serialize, Deserialize, PartialEq)]
pub struct Context {
/// Statuses that were replied to.
pub ancestors: Vec<Status>,
/// Statuses that replied to this status.
pub descendants: Vec<Status>,
}