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<Response<DndEndSchema>, ClientError>
pub async fn message( &self, count: i64, highlight: bool, page: i64, query: &str, sort: &str, sort_dir: &str, ) -> Result<Response<DndEndSchema>, ClientError>
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).
Auto Trait Implementations§
impl Freeze for Search
impl !RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl !UnwindSafe for Search
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more