pub struct Version {
pub id: String,
pub type_: VersionType,
pub url: String,
pub time: DateTime<Utc>,
pub release_time: DateTime<Utc>,
pub sha1: String,
pub compliance_level: u32,
pub original_sha1: Option<String>,
}Expand description
A game version of Minecraft
Fields§
§id: StringA unique identifier of the version
type_: VersionTypeThe release type of the version
url: StringA link to additional information about the version
time: DateTime<Utc>The latest time a file in this version was updated
release_time: DateTime<Utc>The time this version was released
sha1: StringThe SHA1 hash of the additional information about the version
compliance_level: u32Whether the version supports the latest player safety features
original_sha1: Option<String>(Modrinth Provided) The SHA1 hash of the original unmodified Minecraft versions JSON
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
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin 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