| 
									
										
										
										
											2022-11-27 14:44:43 +00:00
										 |  |  | //! A module about contexts of statuses.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-29 23:50:29 +00:00
										 |  |  | use serde::Deserialize;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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.
 | 
					
						
							|  |  |  | #[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>,
 | 
					
						
							|  |  |  | }
 |