Struct scl_core::download::curseforge::SearchParams
source · 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 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