Struct cobble_core::minecraft::models::VersionSummary
source · pub struct VersionSummary {
pub id: String,
pub _type: VersionType,
pub url: String,
pub time: OffsetDateTime,
pub release_time: OffsetDateTime,
}
Expand description
Summary of a version that is found in the version manifest.
Fields§
§id: String
The version ID. Usually this is the version number for releases.
_type: VersionType
The type of version this is. Release, Snapshot, Beta or Alpha.
url: String
The URL of the version data JSON.
time: OffsetDateTime
Release time
release_time: OffsetDateTime
Release time
Implementations§
source§impl VersionSummary
impl VersionSummary
sourcepub async fn fetch_data(&self) -> Result<VersionData>
pub async fn fetch_data(&self) -> Result<VersionData>
Gets the version data itself from Minecraft servers.
Trait Implementations§
source§impl Clone for VersionSummary
impl Clone for VersionSummary
source§fn clone(&self) -> VersionSummary
fn clone(&self) -> VersionSummary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VersionSummary
impl Debug for VersionSummary
source§impl<'de> Deserialize<'de> for VersionSummary
impl<'de> Deserialize<'de> for VersionSummary
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