pub struct Version {Show 17 fields
pub name: String,
pub version_number: String,
pub changelog: Option<Option<String>>,
pub dependencies: Option<Vec<VersionDependency>>,
pub game_versions: Vec<String>,
pub version_type: VersionType,
pub loaders: Vec<String>,
pub featured: bool,
pub status: Option<Status>,
pub requested_status: Option<Option<RequestedStatus>>,
pub id: String,
pub project_id: String,
pub author_id: String,
pub date_published: String,
pub downloads: i32,
pub changelog_url: Option<Option<String>>,
pub files: Vec<VersionFile>,
}
Fields§
§name: String
The name of this version
version_number: String
The version number. Ideally will follow semantic versioning
changelog: Option<Option<String>>
The changelog for this version
dependencies: Option<Vec<VersionDependency>>
A list of specific versions of projects that this version depends on
game_versions: Vec<String>
A list of versions of Minecraft that this version supports
version_type: VersionType
The release channel for this version
loaders: Vec<String>
The mod loaders that this version supports
featured: bool
Whether the version is featured or not
status: Option<Status>
§requested_status: Option<Option<RequestedStatus>>
§id: String
The ID of the version, encoded as a base62 string
project_id: String
The ID of the project this version is for
The ID of the author who published this version
date_published: String
§downloads: i32
The number of times this version has been downloaded
changelog_url: Option<Option<String>>
A link to the changelog for this version. Always null, only kept for legacy compatibility.
files: Vec<VersionFile>
A list of files available for download for this version
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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