#[non_exhaustive]pub struct SearchFilesRequest {
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.files: Searches for files matching a query.
Send it with SlackClient::search_files.
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.
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 SearchFilesRequest
impl SearchFilesRequest
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 SearchFilesRequest
impl Clone for SearchFilesRequest
Source§impl Debug for SearchFilesRequest
impl Debug for SearchFilesRequest
Source§impl PartialEq for SearchFilesRequest
impl PartialEq for SearchFilesRequest
Source§impl Serialize for SearchFilesRequest
impl Serialize for SearchFilesRequest
Source§impl SlackApiMethod for SearchFilesRequest
impl SlackApiMethod for SearchFilesRequest
impl StructuralPartialEq for SearchFilesRequest
Auto Trait Implementations§
impl Freeze for SearchFilesRequest
impl RefUnwindSafe for SearchFilesRequest
impl Send for SearchFilesRequest
impl Sync for SearchFilesRequest
impl Unpin for SearchFilesRequest
impl UnsafeUnpin for SearchFilesRequest
impl UnwindSafe for SearchFilesRequest
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