pub struct Search<'a> { /* private fields */ }Implementations§
Source§impl<'a> Search<'a>
impl<'a> Search<'a>
Sourcepub async fn advanced(
&self,
params: &AdvancedSearchParams,
) -> Result<Page<AdvancedSearchResponseContent>, Error>
pub async fn advanced( &self, params: &AdvancedSearchParams, ) -> Result<Page<AdvancedSearchResponseContent>, Error>
Get the options the advanced search refine form offers.
Advanced search: message matches grouped by topic as the search page shows them — the topic, its posting id, and the matching entries as summaries (no bodies; read a message with GetMessage). Refinements are the same query parameters the page uses. The next page, if any, is a Link header.
Sourcepub async fn get_advanced_filters(
&self,
) -> Result<GetAdvancedSearchFiltersResponseContent, Error>
pub async fn get_advanced_filters( &self, ) -> Result<GetAdvancedSearchFiltersResponseContent, Error>
The advanced search refine form’s options: boxes, date ranges, labels and attachment kinds.
Source§impl Search<'_>
impl Search<'_>
Sourcepub async fn search(
&self,
params: &SearchParams,
) -> Result<AdvancedSearchResult, Error>
pub async fn search( &self, params: &SearchParams, ) -> Result<AdvancedSearchResult, Error>
Runs an advanced search and answers the matching threads, grouped by topic as the
search page shows them: the topic, your posting of it, and the entries that matched
as summaries — read a message with
Messages::get.
Sourcepub async fn search_page(
&self,
params: &SearchParams,
) -> Result<SearchResults, Error>
pub async fn search_page( &self, params: &SearchParams, ) -> Result<SearchResults, Error>
Runs the same search as Search::search and also answers which page comes next.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Search<'a>
impl<'a> !UnwindSafe for Search<'a>
impl<'a> Freeze for Search<'a>
impl<'a> Send for Search<'a>
impl<'a> Sync for Search<'a>
impl<'a> Unpin for Search<'a>
impl<'a> UnsafeUnpin for Search<'a>
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