pub struct AssetSearch {
pub name: Option<String>,
pub description: Option<String>,
pub query: Option<String>,
}Expand description
Fuzzy search on asset properties.
Fields§
§name: Option<String>The name of the asset
description: Option<String>The description of the asset.
query: Option<String>Whitespace-separated terms to search for in assets. Does a best-effort fuzzy search in relevant fields (currently name and description) for variations of any of the search terms, and orders results by relevance. Uses a different search algorithm than the name and description parameters, and will generally give much better results. Matching and ordering is not guaranteed to be stable over time, and the fields being searched may be extended.
Implementations§
Source§impl AssetSearch
impl AssetSearch
Sourcepub fn new() -> AssetSearch
pub fn new() -> AssetSearch
Create an empty assets search
Trait Implementations§
Source§impl Clone for AssetSearch
impl Clone for AssetSearch
Source§fn clone(&self) -> AssetSearch
fn clone(&self) -> AssetSearch
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 moreSource§impl Debug for AssetSearch
impl Debug for AssetSearch
Source§impl Default for AssetSearch
impl Default for AssetSearch
Source§fn default() -> AssetSearch
fn default() -> AssetSearch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssetSearch
impl<'de> Deserialize<'de> for AssetSearch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl SearchItems<'_, AssetFilter, AssetSearch, Asset> for AssetsResource
impl SearchItems<'_, AssetFilter, AssetSearch, Asset> for AssetsResource
Auto Trait Implementations§
impl Freeze for AssetSearch
impl RefUnwindSafe for AssetSearch
impl Send for AssetSearch
impl Sync for AssetSearch
impl Unpin for AssetSearch
impl UnwindSafe for AssetSearch
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