pub struct LoaderConfig {
pub loader_type: Option<LoaderType>,
pub build: String,
pub enable: bool,
pub path: Option<String>,
pub config: Option<LoaderInnerConfig>,
}Fields§
§loader_type: Option<LoaderType>Which mod loader to install (None = no loader).
build: StringBuild selector: "latest", "recommended", or an exact version string
(default: "latest").
enable: boolWhether to run the loader installer (default: false).
path: Option<String>Loader-local directory prefix, e.g. "./loader/forge".
Auto-set to "./loader/<type>" if not provided.
config: Option<LoaderInnerConfig>Paths populated by the installer after a successful install. Passed back to the argument builder.
Trait Implementations§
Source§impl Clone for LoaderConfig
impl Clone for LoaderConfig
Source§fn clone(&self) -> LoaderConfig
fn clone(&self) -> LoaderConfig
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 LoaderConfig
impl Debug for LoaderConfig
Source§impl Default for LoaderConfig
impl Default for LoaderConfig
Source§fn default() -> LoaderConfig
fn default() -> LoaderConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoaderConfig
impl<'de> Deserialize<'de> for LoaderConfig
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 LoaderConfig
impl RefUnwindSafe for LoaderConfig
impl Send for LoaderConfig
impl Sync for LoaderConfig
impl Unpin for LoaderConfig
impl UnsafeUnpin for LoaderConfig
impl UnwindSafe for LoaderConfig
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