pub struct SearchParams {
pub game_version: String,
pub index: u64,
pub page_size: u64,
pub category_id: u64,
pub search_filter: String,
pub sort: SearchSortMethod,
}
Expand description
搜索参数,将其传入到 self::search_mods
方法以搜索模组
Fields§
§game_version: String
搜索支持指定游戏版本的模组
index: u64
当前的搜索页码
page_size: u64
当前搜索的每页项目数量
category_id: u64
模组类型 ID
search_filter: String
搜索的关键字
sort: SearchSortMethod
搜索结果的排序方式
Trait Implementations§
Source§impl Default for SearchParams
impl Default for SearchParams
Source§fn default() -> SearchParams
fn default() -> SearchParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnwindSafe for SearchParams
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