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 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 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
Auto Trait Implementations§
impl Freeze for VersionSummary
impl RefUnwindSafe for VersionSummary
impl Send for VersionSummary
impl Sync for VersionSummary
impl Unpin for VersionSummary
impl UnwindSafe for VersionSummary
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