pub struct ForgeProfile {
pub install: Option<ForgeInstallSection>,
pub version: Option<ForgeVersionSection>,
pub data: Option<HashMap<String, ProfileDataEntry>>,
pub file_path: Option<String>,
pub path: Option<String>,
pub processors: Option<Vec<ForgeProcessor>>,
pub libraries: Option<Vec<LoaderLibrary>>,
pub version_info: Option<ForgeVersionSection>,
}Expand description
Top-level install_profile.json. Dual format:
- Old format (pre-1.13): has a top-level
installkey → the profile ISinstall. - New format (1.13+):
installandversionare separate sections.
Fields§
§install: Option<ForgeInstallSection>§version: Option<ForgeVersionSection>§data: Option<HashMap<String, ProfileDataEntry>>Variable map used by processors ({BINPATCH}, {MAPPINGS}, etc.).
Present in new-format (1.13+) profiles.
file_path: Option<String>Path within the installer ZIP to the primary artifact (old format).
path: Option<String>Maven coordinate of the primary Forge artifact (old format).
processors: Option<Vec<ForgeProcessor>>§libraries: Option<Vec<LoaderLibrary>>§version_info: Option<ForgeVersionSection>Old-format (pre-1.13) Forge: the full version JSON embedded inline.
Trait Implementations§
Source§impl Debug for ForgeProfile
impl Debug for ForgeProfile
Source§impl Default for ForgeProfile
impl Default for ForgeProfile
Source§fn default() -> ForgeProfile
fn default() -> ForgeProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ForgeProfilewhere
ForgeProfile: Default,
impl<'de> Deserialize<'de> for ForgeProfilewhere
ForgeProfile: Default,
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 ForgeProfile
impl RefUnwindSafe for ForgeProfile
impl Send for ForgeProfile
impl Sync for ForgeProfile
impl Unpin for ForgeProfile
impl UnsafeUnpin for ForgeProfile
impl UnwindSafe for ForgeProfile
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