pub struct PackageVersion {
pub id: i32,
pub package: i32,
pub name: String,
pub version_number: String,
pub changelog: Option<String>,
pub kubejs: Vec<String>,
pub loaders: Vec<String>,
pub minecraft: Vec<String>,
pub downloads: i32,
pub created_at: NaiveDateTime,
pub updated_at: NaiveDateTime,
}Expand description
A struct representing a package version.
Fields§
§id: i32The version’s numerical ID.
package: i32The ID of the package this version belongs to.
name: StringThe display name of this version.
version_number: StringThis version’s version number.
changelog: Option<String>An optional markdown-formatted changelog.
kubejs: Vec<String>A list of KubeJS versions this version works on. Note that this is currently not used anywhere.
loaders: Vec<String>A list of loaders this version works on.
minecraft: Vec<String>A list of Minecraft versions this version works on.
downloads: i32The number of downloads this version has.
created_at: NaiveDateTimeThe date/time when this version was created.
updated_at: NaiveDateTimeThe date/time when this version was last updated.
Trait Implementations§
Source§impl Clone for PackageVersion
impl Clone for PackageVersion
Source§fn clone(&self) -> PackageVersion
fn clone(&self) -> PackageVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackageVersion
impl Debug for PackageVersion
Source§impl<'de> Deserialize<'de> for PackageVersion
impl<'de> Deserialize<'de> for PackageVersion
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 Eq for PackageVersion
Source§impl Hash for PackageVersion
impl Hash for PackageVersion
Source§impl Ord for PackageVersion
impl Ord for PackageVersion
Source§fn cmp(&self, other: &PackageVersion) -> Ordering
fn cmp(&self, other: &PackageVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PackageVersion
impl PartialEq for PackageVersion
Source§impl PartialOrd for PackageVersion
impl PartialOrd for PackageVersion
Source§impl Serialize for PackageVersion
impl Serialize for PackageVersion
impl StructuralPartialEq for PackageVersion
Auto Trait Implementations§
impl Freeze for PackageVersion
impl RefUnwindSafe for PackageVersion
impl Send for PackageVersion
impl Sync for PackageVersion
impl Unpin for PackageVersion
impl UnsafeUnpin for PackageVersion
impl UnwindSafe for PackageVersion
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