Struct factorio_mod_api::api::ModRelease
source · pub struct ModRelease {
pub download_url: String,
pub file_name: String,
pub info_json: ModManifest,
pub released_at: DateTime<Utc>,
pub version: Version,
pub sha1: String,
}
Fields
download_url: String
Path to download for a mod. starts with “/download” and does not include a full url.
file_name: String
The file name of the release. Always seems to follow the pattern “{name}_{version}.zip”
info_json: ModManifest
A copy of the mod’s info.json file, only contains factorio_version in short version, also contains an array of dependencies in full version
released_at: DateTime<Utc>
ISO 6501 for when the mod was released.
version: Version
The version string of this mod release. Used to determine dependencies.
sha1: String
The sha1 key for the file
Trait Implementations
sourceimpl Clone for ModRelease
impl Clone for ModRelease
sourcefn clone(&self) -> ModRelease
fn clone(&self) -> ModRelease
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModRelease
impl Debug for ModRelease
sourceimpl<'de> Deserialize<'de> for ModRelease
impl<'de> Deserialize<'de> for ModRelease
sourcefn 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 ModRelease
impl Send for ModRelease
impl Sync for ModRelease
impl Unpin for ModRelease
impl UnwindSafe for ModRelease
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more