diff options
Diffstat (limited to 'src/model/channel')
| -rw-r--r-- | src/model/channel/message.rs | 6 | ||||
| -rw-r--r-- | src/model/channel/mod.rs | 18 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/model/channel/message.rs b/src/model/channel/message.rs index 593aa48..91f6c89 100644 --- a/src/model/channel/message.rs +++ b/src/model/channel/message.rs @@ -31,12 +31,6 @@ pub struct Message { pub edited_timestamp: Option<String>, /// Array of embeds sent with the message. pub embeds: Vec<Embed>, - /// Whether the message is the "found" message in a search. - /// - /// Note that this is only relevant in the context of searches, and will - /// otherwise always be `false`. - #[serde(default)] - pub hit: bool, /// Indicator of the type of message this is, i.e. whether it is a regular /// message or a system message. #[serde(rename="type")] diff --git a/src/model/channel/mod.rs b/src/model/channel/mod.rs index a54acdf..33e4e9b 100644 --- a/src/model/channel/mod.rs +++ b/src/model/channel/mod.rs @@ -497,21 +497,3 @@ pub enum PermissionOverwriteType { /// A role which is having its permission overwrites edited. Role(RoleId), } - -/// The results of a search, including the total results and a vector of -/// messages. -#[derive(Clone, Debug, Deserialize)] -pub struct SearchResult { - /// An amount of messages returned from the result. - /// - /// Note that this is a vectof of a vector of messages. Each "set" of - /// messages contains the "found" message, as well as optional surrounding - /// messages for context. - #[serde(rename="messages")] - pub results: Vec<Vec<Message>>, - /// The number of messages directly related to the search. - /// - /// This does not count contextual messages. - #[serde(rename="total_results")] - pub total: u64, -} |