pub struct SearchBuilder { /* private fields */ }
Expand description
Builder for creating search queries
Implementations§
Source§impl SearchBuilder
impl SearchBuilder
Sourcepub fn owner_type(self, owner_type: OwnerType) -> Self
pub fn owner_type(self, owner_type: OwnerType) -> Self
Set owner type filter
Sourcepub fn search_in_title_only(self, title_only: bool) -> Self
pub fn search_in_title_only(self, title_only: bool) -> Self
Search only in titles
Sourcepub fn enum_filter(self, key: &str, values: Vec<String>) -> Self
pub fn enum_filter(self, key: &str, values: Vec<String>) -> Self
Add enum filter (multiple values)
Sourcepub fn real_estate_type(self, types: Vec<&str>) -> Self
pub fn real_estate_type(self, types: Vec<&str>) -> Self
Add real estate type filter
Sourcepub async fn execute(self) -> Result<SearchResult>
pub async fn execute(self) -> Result<SearchResult>
Execute the search
Auto Trait Implementations§
impl Freeze for SearchBuilder
impl !RefUnwindSafe for SearchBuilder
impl Send for SearchBuilder
impl Sync for SearchBuilder
impl Unpin for SearchBuilder
impl !UnwindSafe for SearchBuilder
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