Struct slack_chat_api::search::Search
source · pub struct Search {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Search
impl Search
sourcepub async fn message(
&self,
count: i64,
highlight: bool,
page: i64,
query: &str,
sort: &str,
sort_dir: &str
) -> Result<DndEndSchema>
pub async fn message( &self, count: i64, highlight: bool, page: i64, query: &str, sort: &str, sort_dir: &str ) -> Result<DndEndSchema>
This function performs a GET to the /search.messages endpoint.
Searches for messages matching a query.
FROM: https://api.slack.com/methods/search.messages
Parameters:
token: &str– Authentication token. Requires scope:search:read.count: i64– Pass the number of results you want per “page”. Maximum of100.highlight: bool– Pass a value oftrueto enable query highlight markers (see below).page: i64query: &str– Search query.sort: &str– Return matches sorted by eitherscoreortimestamp.sort_dir: &str– Change sort direction to ascending (asc) or descending (desc).