pub struct ModSpec {
pub metadata: ModMetadata,
pub releases: Vec<ModRelease>,
pub description: Option<String>,
pub github_path: Option<String>,
pub tag: Option<ModTag>,
pub score: f64,
pub thumbnail: Option<String>,
}
Expand description
A mod as returned from the https://mods.factorio.com/api/mods/{name}
endpoint (not yet implemented). Also returned as part of the full request.
Fields§
§metadata: ModMetadata
Metadata shared between the three different API invocations.
releases: Vec<ModRelease>
A list of different versions of the mod available for download.
description: Option<String>
A longer description of the mod, in text only format.
github_path: Option<String>
A link to the mod’s github project page, just prepend “github.com/”. Can be blank (“”).
tag: Option<ModTag>
A list of tag objects that categorize the mod.
score: f64
§thumbnail: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModSpec
impl<'de> Deserialize<'de> for ModSpec
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 Freeze for ModSpec
impl RefUnwindSafe for ModSpec
impl Send for ModSpec
impl Sync for ModSpec
impl Unpin for ModSpec
impl UnwindSafe for ModSpec
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