pub struct PublicSearch { /* private fields */ }Expand description
Request builder for public search
Implementations§
Source§impl PublicSearch
impl PublicSearch
Sourcepub fn search_profiles(self, include: bool) -> Self
pub fn search_profiles(self, include: bool) -> Self
Include profile results in search
Sourcepub fn limit_per_type(self, limit: u32) -> Self
pub fn limit_per_type(self, limit: u32) -> Self
Set maximum results per type
Sourcepub fn events_status(self, status: impl Into<String>) -> Self
pub fn events_status(self, status: impl Into<String>) -> Self
Filter by event status
Sourcepub fn events_tag(
self,
tag_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn events_tag( self, tag_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by event tag IDs
Sourcepub fn keep_closed_markets(self, keep: bool) -> Self
pub fn keep_closed_markets(self, keep: bool) -> Self
Include closed markets in results
Include tag search results
Sourcepub fn recurrence(self, recurrence: impl Into<String>) -> Self
pub fn recurrence(self, recurrence: impl Into<String>) -> Self
Filter by recurrence pattern
Sourcepub fn exclude_tag_id(self, tag_ids: impl IntoIterator<Item = i64>) -> Self
pub fn exclude_tag_id(self, tag_ids: impl IntoIterator<Item = i64>) -> Self
Exclude events with specified tag IDs
Sourcepub async fn send(self) -> Result<SearchResponse, GammaError>
pub async fn send(self) -> Result<SearchResponse, GammaError>
Execute the request
Auto Trait Implementations§
impl Freeze for PublicSearch
impl !RefUnwindSafe for PublicSearch
impl Send for PublicSearch
impl Sync for PublicSearch
impl Unpin for PublicSearch
impl UnsafeUnpin for PublicSearch
impl !UnwindSafe for PublicSearch
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