#[non_exhaustive]pub struct SearchAllRequest {
pub query: String,
pub count: Option<i64>,
pub highlight: Option<bool>,
pub page: Option<i64>,
pub sort: Option<String>,
pub sort_dir: Option<String>,
pub team_id: Option<String>,
}Expand description
Arguments for the Slack Web API method search.all: Searches for messages and files matching a query.
Send it with SlackClient::search_all.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query: StringSearch query. May contains booleans, etc.
count: Option<i64>§highlight: Option<bool>Pass a value of true to enable query highlight markers (see below).
page: Option<i64>§sort: Option<String>Return matches sorted by either score or timestamp.
sort_dir: Option<String>Change sort direction to ascending (asc) or descending (desc).
team_id: Option<String>encoded team id to search in, required if org token is used
Implementations§
Source§impl SearchAllRequest
impl SearchAllRequest
pub fn new(query: impl Into<String>) -> Self
pub fn count(self, count: i64) -> Self
pub fn highlight(self, highlight: bool) -> Self
pub fn page(self, page: i64) -> Self
pub fn sort(self, sort: impl Into<String>) -> Self
pub fn sort_dir(self, sort_dir: impl Into<String>) -> Self
pub fn team_id(self, team_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SearchAllRequest
impl Clone for SearchAllRequest
Source§impl Debug for SearchAllRequest
impl Debug for SearchAllRequest
Source§impl PartialEq for SearchAllRequest
impl PartialEq for SearchAllRequest
Source§impl Serialize for SearchAllRequest
impl Serialize for SearchAllRequest
Source§impl SlackApiMethod for SearchAllRequest
impl SlackApiMethod for SearchAllRequest
impl StructuralPartialEq for SearchAllRequest
Auto Trait Implementations§
impl Freeze for SearchAllRequest
impl RefUnwindSafe for SearchAllRequest
impl Send for SearchAllRequest
impl Sync for SearchAllRequest
impl Unpin for SearchAllRequest
impl UnsafeUnpin for SearchAllRequest
impl UnwindSafe for SearchAllRequest
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