#[non_exhaustive]pub struct ModloaderPackage {
pub package_id: String,
pub root_folder: String,
pub loader: LoaderKind,
}Expand description
A package that is itself a mod-loader pack.
Membership in the registry is how the engine decides a package unpacks to the profile root rather than being routed as a regular mod.
#[non_exhaustive]: fields may be added as the ecosystem schema grows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.package_id: StringThe package’s Owner-Name identifier.
root_folder: StringThe subfolder within the pack whose contents unpack to the root, or an empty string when the pack’s own root should be copied directly.
loader: LoaderKindThe loader family this pack provides.
Trait Implementations§
Source§impl Clone for ModloaderPackage
impl Clone for ModloaderPackage
Source§fn clone(&self) -> ModloaderPackage
fn clone(&self) -> ModloaderPackage
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 ModloaderPackage
impl Debug for ModloaderPackage
Source§impl<'de> Deserialize<'de> for ModloaderPackage
impl<'de> Deserialize<'de> for ModloaderPackage
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 ModloaderPackage
impl RefUnwindSafe for ModloaderPackage
impl Send for ModloaderPackage
impl Sync for ModloaderPackage
impl Unpin for ModloaderPackage
impl UnsafeUnpin for ModloaderPackage
impl UnwindSafe for ModloaderPackage
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