forked from jmug/stoatchat
refactor(quark): port message_react, message_send, message_unreact, permissions_set_default, permissions_set
#283
This commit is contained in:
@@ -272,7 +272,7 @@ auto_derived!(
|
||||
}
|
||||
|
||||
/// Options for searching for messages
|
||||
pub struct OptionsMessageSearch {
|
||||
pub struct DataMessageSearch {
|
||||
/// Full-text search query
|
||||
///
|
||||
/// See [MongoDB documentation](https://docs.mongodb.com/manual/text-search/#-text-operator) for more information.
|
||||
@@ -318,6 +318,15 @@ auto_derived!(
|
||||
#[validate(length(min = 1, max = 100))]
|
||||
pub ids: Vec<String>,
|
||||
}
|
||||
|
||||
/// Options for removing reaction
|
||||
#[cfg_attr(feature = "rocket", derive(FromForm))]
|
||||
pub struct OptionsUnreact {
|
||||
/// Remove a specific user's reaction
|
||||
pub user_id: Option<String>,
|
||||
/// Remove all reactions
|
||||
pub remove_all: Option<bool>,
|
||||
}
|
||||
);
|
||||
|
||||
/// Message Author Abstraction
|
||||
|
||||
Reference in New Issue
Block a user