pub struct ModResult {
pub project_id: String,
pub slug: String,
pub icon_url: String,
pub title: String,
pub description: String,
}
Expand description
一个模组搜索结果的信息
Fields§
§project_id: String
这个不是真正的模组 ID,而是服务器中记录的数字 ID
slug: String
用于短链接的模组名,大部分应该都是模组 ID
icon_url: String
模组的图标链接,有可能为空
title: String
模组的标题或名称
description: String
模组的简介
Trait Implementations§
source§impl<'de> Deserialize<'de> for ModResult
impl<'de> Deserialize<'de> for ModResult
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
Auto Trait Implementations§
impl RefUnwindSafe for ModResult
impl Send for ModResult
impl Sync for ModResult
impl Unpin for ModResult
impl UnwindSafe for ModResult
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