pub struct CreatableVersion {Show 13 fields
pub name: String,
pub version_number: String,
pub changelog: Option<Option<String>>,
pub dependencies: Vec<VersionDependency>,
pub game_versions: Vec<String>,
pub version_type: VersionType,
pub loaders: Vec<String>,
pub featured: bool,
pub status: Option<Status>,
pub requested_status: Option<Option<RequestedStatus>>,
pub project_id: String,
pub file_parts: Vec<String>,
pub primary_file: Option<String>,
}
Fields§
§name: String
The name of this version
version_number: String
The version number. Ideally will follow semantic versioning
changelog: Option<Option<String>>
The changelog for this version
dependencies: Vec<VersionDependency>
A list of specific versions of projects that this version depends on
game_versions: Vec<String>
A list of versions of Minecraft that this version supports
version_type: VersionType
The release channel for this version
loaders: Vec<String>
The mod loaders that this version supports
featured: bool
Whether the version is featured or not
status: Option<Status>
§requested_status: Option<Option<RequestedStatus>>
§project_id: String
The ID of the project this version is for
file_parts: Vec<String>
An array of the multipart field names of each file that goes with this version
primary_file: Option<String>
The multipart field name of the primary file
Implementations§
Trait Implementations§
Source§impl Clone for CreatableVersion
impl Clone for CreatableVersion
Source§fn clone(&self) -> CreatableVersion
fn clone(&self) -> CreatableVersion
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 CreatableVersion
impl Debug for CreatableVersion
Source§impl Default for CreatableVersion
impl Default for CreatableVersion
Source§fn default() -> CreatableVersion
fn default() -> CreatableVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatableVersion
impl<'de> Deserialize<'de> for CreatableVersion
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 CreatableVersion
impl PartialEq for CreatableVersion
Source§impl Serialize for CreatableVersion
impl Serialize for CreatableVersion
impl StructuralPartialEq for CreatableVersion
Auto Trait Implementations§
impl Freeze for CreatableVersion
impl RefUnwindSafe for CreatableVersion
impl Send for CreatableVersion
impl Sync for CreatableVersion
impl Unpin for CreatableVersion
impl UnwindSafe for CreatableVersion
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