pub struct Version {Show 13 fields
pub name: Option<String>,
pub full_name: Option<String>,
pub description: Option<String>,
pub icon: Option<String>,
pub version_number: Option<String>,
pub dependencies: Vec<String>,
pub download_url: Option<String>,
pub downloads: Option<u32>,
pub date_created: OffsetDateTime,
pub website_url: Option<String>,
pub is_active: Option<bool>,
pub uuid4: Option<String>,
pub file_size: Option<u64>,
}Expand description
Represents a specific version of a mod package.
This struct contains information about one version of a package, including its version number, dependencies, and download information.
Fields§
§name: Option<String>The name of this version
full_name: Option<String>The full name of this version
description: Option<String>The description of this version
icon: Option<String>URL to the icon for this version
version_number: Option<String>The version number (e.g., “1.0.0”)
dependencies: Vec<String>List of dependencies required by this version
download_url: Option<String>URL to download this version
downloads: Option<u32>Number of times this version has been downloaded
date_created: OffsetDateTimeWhen this version was published
website_url: Option<String>URL to the website for this version
is_active: Option<bool>Whether this version is active
uuid4: Option<String>Unique identifier for this version
file_size: Option<u64>Size of the download file in bytes
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