pub struct MinecraftVersion {
pub id: u32,
pub game_version_id: u32,
pub version_string: String,
pub jar_download_url: String,
pub json_download_url: String,
pub approved: bool,
pub date_modified: OffsetDateTime,
pub game_version_type_id: u32,
pub game_version_status: u32,
pub game_version_type_status: u32,
}
Expand description
A Minecraft version struct.
This struct is used to deserialize the response from the CurseForge API.
§Fields
id
- The ID of the Minecraft version.game_version_id
- The ID of the Minecraft version’s game version.version_string
- The string representation of the Minecraft version.jar_download_url
- The URL to download the Minecraft version’s JAR file.json_download_url
- The URL to download the Minecraft version’s JSON file.approved
- Whether or not the Minecraft version is approved.date_modified
- The date and time the Minecraft version was last modified.game_version_type_id
- The ID of the Minecraft version’s game version type.game_version_status
- The status of the Minecraft version’s game version.game_version_type_status
- The status of the Minecraft version’s game version type.
Fields§
§id: u32
The ID of the Minecraft version.
game_version_id: u32
The ID of the Minecraft version’s game version.
version_string: String
The string representation of the Minecraft version.
jar_download_url: String
The URL to download the Minecraft version’s JAR file.
json_download_url: String
The URL to download the Minecraft version’s JSON file.
approved: bool
Whether or not the Minecraft version is approved.
date_modified: OffsetDateTime
The date and time the Minecraft version was last modified.
game_version_type_id: u32
The ID of the Minecraft version’s game version type.
game_version_status: u32
The status of the Minecraft version’s game version.
game_version_type_status: u32
The status of the Minecraft version’s game version type.
Trait Implementations§
Source§impl Debug for MinecraftVersion
impl Debug for MinecraftVersion
Source§impl<'de> Deserialize<'de> for MinecraftVersion
impl<'de> Deserialize<'de> for MinecraftVersion
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 MinecraftVersion
impl RefUnwindSafe for MinecraftVersion
impl Send for MinecraftVersion
impl Sync for MinecraftVersion
impl Unpin for MinecraftVersion
impl UnwindSafe for MinecraftVersion
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