pub struct EditableVersion {
pub name: Option<String>,
pub version_number: Option<String>,
pub changelog: Option<Option<String>>,
pub dependencies: Option<Vec<VersionDependency>>,
pub game_versions: Option<Vec<String>>,
pub version_type: Option<VersionType>,
pub loaders: Option<Vec<String>>,
pub featured: Option<bool>,
pub status: Option<Status>,
pub requested_status: Option<Option<RequestedStatus>>,
pub primary_file: Option<Vec<String>>,
pub file_types: Option<Vec<EditableFileType>>,
}
Fields§
§name: Option<String>
The name of this version
version_number: Option<String>
The version number. Ideally will follow semantic versioning
changelog: Option<Option<String>>
The changelog for this version
dependencies: Option<Vec<VersionDependency>>
A list of specific versions of projects that this version depends on
game_versions: Option<Vec<String>>
A list of versions of Minecraft that this version supports
version_type: Option<VersionType>
The release channel for this version
loaders: Option<Vec<String>>
The mod loaders that this version supports
featured: Option<bool>
Whether the version is featured or not
status: Option<Status>
§requested_status: Option<Option<RequestedStatus>>
§primary_file: Option<Vec<String>>
The hash format and the hash of the new primary file
file_types: Option<Vec<EditableFileType>>
A list of file_types to edit
Implementations§
Source§impl EditableVersion
impl EditableVersion
pub fn new() -> EditableVersion
Trait Implementations§
Source§impl Clone for EditableVersion
impl Clone for EditableVersion
Source§fn clone(&self) -> EditableVersion
fn clone(&self) -> EditableVersion
Returns a duplicate 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 EditableVersion
impl Debug for EditableVersion
Source§impl Default for EditableVersion
impl Default for EditableVersion
Source§fn default() -> EditableVersion
fn default() -> EditableVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditableVersion
impl<'de> Deserialize<'de> for EditableVersion
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
Source§impl PartialEq for EditableVersion
impl PartialEq for EditableVersion
Source§impl Serialize for EditableVersion
impl Serialize for EditableVersion
impl StructuralPartialEq for EditableVersion
Auto Trait Implementations§
impl Freeze for EditableVersion
impl RefUnwindSafe for EditableVersion
impl Send for EditableVersion
impl Sync for EditableVersion
impl Unpin for EditableVersion
impl UnwindSafe for EditableVersion
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