pub struct ModFile {
pub url: String,
pub filename: String,
pub primary: bool,
}
Expand description
一个模组文件信息
Fields§
§url: String
此模组文件的下载链接
filename: String
此模组文件的文件名称
primary: bool
是否是主要的推荐下载项目
Trait Implementations§
source§impl<'de> Deserialize<'de> for ModFile
impl<'de> Deserialize<'de> for ModFile
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 ModFile
impl Send for ModFile
impl Sync for ModFile
impl Unpin for ModFile
impl UnwindSafe for ModFile
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