mastodon_async_entities/search_result.rs
1//! A module containing info relating to a search result.
2
3use serde::{Deserialize, Serialize};
4
5use super::{
6 prelude::{Account, Status},
7 status::Tag,
8};
9
10/// A struct containing results of a search, with `Tag` objects in the
11/// `hashtags` field
12#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
13pub struct SearchResult {
14 /// An array of matched Accounts.
15 pub accounts: Vec<Account>,
16 /// An array of matched Statuses.
17 pub statuses: Vec<Status>,
18 /// An array of matched hashtags, as `Tag` objects.
19 pub hashtags: Vec<Tag>,
20}