pub struct PackageVersionUpdate {
pub name: Option<String>,
pub version_number: Option<String>,
pub changelog: Option<String>,
pub kubejs: Option<Vec<String>>,
pub loaders: Option<Vec<String>>,
pub minecraft: Option<Vec<String>>,
}Expand description
A struct representing the fields that can be updated in a package version.
Fields§
§name: Option<String>The display name of this version.
version_number: Option<String>This version’s version number.
changelog: Option<String>An optional markdown-formatted changelog.
kubejs: Option<Vec<String>>A list of KubeJS versions this version works on. Note that this is currently not used anywhere.
loaders: Option<Vec<String>>A list of loaders this version works on.
minecraft: Option<Vec<String>>A list of Minecraft versions this version works on.
Trait Implementations§
Source§impl Clone for PackageVersionUpdate
impl Clone for PackageVersionUpdate
Source§fn clone(&self) -> PackageVersionUpdate
fn clone(&self) -> PackageVersionUpdate
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 PackageVersionUpdate
impl Debug for PackageVersionUpdate
Source§impl<'de> Deserialize<'de> for PackageVersionUpdate
impl<'de> Deserialize<'de> for PackageVersionUpdate
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 PackageVersionUpdate
Source§impl Hash for PackageVersionUpdate
impl Hash for PackageVersionUpdate
Source§impl Ord for PackageVersionUpdate
impl Ord for PackageVersionUpdate
Source§fn cmp(&self, other: &PackageVersionUpdate) -> Ordering
fn cmp(&self, other: &PackageVersionUpdate) -> 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 PackageVersionUpdate
impl PartialEq for PackageVersionUpdate
Source§impl PartialOrd for PackageVersionUpdate
impl PartialOrd for PackageVersionUpdate
Source§impl Serialize for PackageVersionUpdate
impl Serialize for PackageVersionUpdate
impl StructuralPartialEq for PackageVersionUpdate
Auto Trait Implementations§
impl Freeze for PackageVersionUpdate
impl RefUnwindSafe for PackageVersionUpdate
impl Send for PackageVersionUpdate
impl Sync for PackageVersionUpdate
impl Unpin for PackageVersionUpdate
impl UnsafeUnpin for PackageVersionUpdate
impl UnwindSafe for PackageVersionUpdate
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