pub struct SearchBuilder { /* private fields */ }Implementations§
Source§impl SearchBuilder
impl SearchBuilder
Add multiple tags to filter by
Sourcepub fn add_or_chain(self, chain: OrChain) -> Self
pub fn add_or_chain(self, chain: OrChain) -> Self
Adds a new or chain
Sourcepub fn sort_descending(self) -> Self
pub fn sort_descending(self) -> Self
Sorts descending
Sourcepub fn sort_ascending(self) -> Self
pub fn sort_ascending(self) -> Self
Sorts ascending
Sourcepub fn file_service_name(self, service: ServiceName) -> Self
pub fn file_service_name(self, service: ServiceName) -> Self
Sets the file service name to search in
Sourcepub fn tag_service_name(self, service: ServiceName) -> Self
pub fn tag_service_name(self, service: ServiceName) -> Self
Sets the tag service to search by
Sourcepub fn file_service_key<S: ToString>(self, key: S) -> Self
pub fn file_service_key<S: ToString>(self, key: S) -> Self
Sets the file service key. This option is preferred over setting it by name because it’s faster
Sourcepub fn tag_service_key<S: ToString>(self, key: S) -> Self
pub fn tag_service_key<S: ToString>(self, key: S) -> Self
Sets the tag service key. This option is preferred over setting it by name because it’s faster
Sourcepub async fn run(self) -> Result<Vec<HydrusFile>>
pub async fn run(self) -> Result<Vec<HydrusFile>>
Runs the search
Trait Implementations§
Source§impl Clone for SearchBuilder
impl Clone for SearchBuilder
Source§fn clone(&self) -> SearchBuilder
fn clone(&self) -> SearchBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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