Struct roboat::catalog::catalog_types::AvatarSearchQuery
source · pub struct AvatarSearchQuery {Show 13 fields
pub category: Option<Category>,
pub creator_name: Option<String>,
pub creator_id: Option<u64>,
pub creator_type: Option<CreatorType>,
pub query_genres: Vec<QueryGenre>,
pub keyword: Option<String>,
pub sort_aggregation: Option<SortAggregation>,
pub sort_type: Option<SortType>,
pub subcategory: Option<Subcategory>,
pub min_price: Option<u32>,
pub max_price: Option<u32>,
pub limit: Option<CatalogQueryLimit>,
pub sales_type_filter: Option<SalesTypeFilter>,
}
Expand description
Information comes directly from here https://create.roblox.com/docs/studio/catalog-api#marketplace-api.
Fields§
§category: Option<Category>
Category must be filled to query more than one page.
creator_name: Option<String>
Search by creator name. If creator_type
is not provided, search is for users only.
creator_id: Option<u64>
Corresponds to a user id or group id depending on the creator type.
Must be filled if creator_type
is filled.
creator_type: Option<CreatorType>
Must be filled if creator_id
is filled.
query_genres: Vec<QueryGenre>
The genres of the item; keep in mind QueryGenre
is different from Genre
.
keyword: Option<String>
The keyword to search for.
sort_aggregation: Option<SortAggregation>
The sort aggregation is used to sort the results by a specific metric.
View SortAggregation
for more information.
sort_type: Option<SortType>
The sort type is used to sort the results in a specific order.
View SortType
for more information.
subcategory: Option<Subcategory>
Subcategory must be filled to query more than one page.
min_price: Option<u32>
The minimum price for each asset.
This is a u32 because large numbers are almost always not needed and cause the endpoint to return an error. More information can be found here: https://github.com/Chloe-Woahie/roboat/pull/61.
max_price: Option<u32>
The maximum price for each asset.
This is a u32 because large numbers are almost always not needed and cause the endpoint to return an error. More information can be found here: https://github.com/Chloe-Woahie/roboat/pull/61.
limit: Option<CatalogQueryLimit>
The maximum assets Roblox should return per page.
View CatalogQueryLimit
for more information.
sales_type_filter: Option<SalesTypeFilter>
Sort between different sale types of assets.
View SalesTypeFilter
for more information.
Implementations§
Trait Implementations§
source§impl Clone for AvatarSearchQuery
impl Clone for AvatarSearchQuery
source§fn clone(&self) -> AvatarSearchQuery
fn clone(&self) -> AvatarSearchQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AvatarSearchQuery
impl Debug for AvatarSearchQuery
source§impl Default for AvatarSearchQuery
impl Default for AvatarSearchQuery
source§fn default() -> AvatarSearchQuery
fn default() -> AvatarSearchQuery
source§impl<'de> Deserialize<'de> for AvatarSearchQuery
impl<'de> Deserialize<'de> for AvatarSearchQuery
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>,
source§impl Hash for AvatarSearchQuery
impl Hash for AvatarSearchQuery
source§impl Ord for AvatarSearchQuery
impl Ord for AvatarSearchQuery
source§fn cmp(&self, other: &AvatarSearchQuery) -> Ordering
fn cmp(&self, other: &AvatarSearchQuery) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AvatarSearchQuery
impl PartialEq for AvatarSearchQuery
source§fn eq(&self, other: &AvatarSearchQuery) -> bool
fn eq(&self, other: &AvatarSearchQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AvatarSearchQuery
impl PartialOrd for AvatarSearchQuery
source§fn partial_cmp(&self, other: &AvatarSearchQuery) -> Option<Ordering>
fn partial_cmp(&self, other: &AvatarSearchQuery) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for AvatarSearchQuery
impl Serialize for AvatarSearchQuery
impl Eq for AvatarSearchQuery
impl StructuralPartialEq for AvatarSearchQuery
Auto Trait Implementations§
impl Freeze for AvatarSearchQuery
impl RefUnwindSafe for AvatarSearchQuery
impl Send for AvatarSearchQuery
impl Sync for AvatarSearchQuery
impl Unpin for AvatarSearchQuery
impl UnwindSafe for AvatarSearchQuery
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.