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§
Source§impl Clone for ModRelease
impl Clone for ModRelease
Source§fn clone(&self) -> ModRelease
fn clone(&self) -> ModRelease
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModRelease
impl Debug for ModRelease
Source§impl<'de> Deserialize<'de> for ModRelease
impl<'de> Deserialize<'de> for ModRelease
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 ModRelease
impl RefUnwindSafe for ModRelease
impl Send for ModRelease
impl Sync for ModRelease
impl Unpin for ModRelease
impl UnwindSafe for ModRelease
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