pub enum InstrKind {
Show 46 variants
If {
condition: Condition,
if_block: BlockId,
else_blocks: Vec<ElseBlock>,
},
Name(Later<String>),
Description(Later<String>),
LongDescription(Later<String>),
Authors(Vec<String>),
PackageMaintainers(Vec<String>),
Website(Later<String>),
SupportLink(Later<String>),
Documentation(Later<String>),
Source(Later<String>),
Issues(Later<String>),
Community(Later<String>),
Icon(Later<String>),
Banner(Later<String>),
Gallery(Vec<String>),
License(Later<String>),
Keywords(Vec<String>),
Categories(Vec<String>),
Features(Vec<String>),
DefaultFeatures(Vec<String>),
ContentVersions(Vec<String>),
ModrinthID(Later<String>),
CurseForgeID(Later<String>),
SmithedID(Later<String>),
SupportedVersions(Vec<VersionPattern>),
SupportedModloaders(Vec<ModloaderMatch>),
SupportedPluginLoaders(Vec<PluginLoaderMatch>),
SupportedSides(Vec<Side>),
SupportedOperatingSystems(Vec<OSCondition>),
SupportedArchitectures(Vec<ArchCondition>),
Tags(Vec<String>),
OpenSource(Later<bool>),
Addon {
id: Value,
file_name: Value,
kind: Option<AddonKind>,
url: Value,
path: Value,
version: Value,
hashes: PackageAddonHashes<Value>,
},
Set(Later<String>, Value),
Require(Vec<Vec<Package>>),
Refuse(Value),
Recommend(bool, Value),
Bundle(Value),
Compat(Value, Value),
Extend(Value),
Finish(),
Fail(Option<FailReason>),
Notice(Value),
Cmd(Vec<Value>),
Call(Later<String>),
Custom(Later<String>, Vec<String>),
}Expand description
Type of an instruction
Variants§
If
Check conditions
Fields
Name(Later<String>)
Set the package name metadata
Description(Later<String>)
Set the package description metadata
LongDescription(Later<String>)
Set the package long description metadata
Authors(Vec<String>)
Set the package authors metadata
PackageMaintainers(Vec<String>)
Set the package maintainers metadata
Website(Later<String>)
Set the package website metadata
SupportLink(Later<String>)
Set the package support link metadata
Documentation(Later<String>)
Set the package documentation metadata
Source(Later<String>)
Set the package source metadata
Issues(Later<String>)
Set the package issues metadata
Community(Later<String>)
Set the package community metadata
Icon(Later<String>)
Set the package icon metadata
Banner(Later<String>)
Set the package banner metadata
Gallery(Vec<String>)
Set the package gallery metadata
License(Later<String>)
Set the package license metadata
Keywords(Vec<String>)
Set the package keywords metadata
Categories(Vec<String>)
Set the package categories metadata
Features(Vec<String>)
Set the package features property
DefaultFeatures(Vec<String>)
Set the package default features property
ContentVersions(Vec<String>)
Set the package content versions property
ModrinthID(Later<String>)
Set the package Modrinth ID property
CurseForgeID(Later<String>)
Set the package CurseForge ID property
SmithedID(Later<String>)
Set the package Smithed ID property
SupportedVersions(Vec<VersionPattern>)
Set the package supported versions property
SupportedModloaders(Vec<ModloaderMatch>)
Set the package supported modloaders property
SupportedPluginLoaders(Vec<PluginLoaderMatch>)
Set the package supported plugin loaders property
SupportedSides(Vec<Side>)
Set the package supported sides property
SupportedOperatingSystems(Vec<OSCondition>)
Set the package supported operating systems property
SupportedArchitectures(Vec<ArchCondition>)
Set the package supported architectures property
Tags(Vec<String>)
Set the package tags property
OpenSource(Later<bool>)
Set the open source property
Addon
Install an addon
Fields
hashes: PackageAddonHashes<Value>The addon’s hashes
Set(Later<String>, Value)
Set a variable to a value
Require(Vec<Vec<Package>>)
Require a package
Refuse(Value)
Refuse a package
Recommend(bool, Value)
Recommend a package
Bundle(Value)
Bundle a package
Compat(Value, Value)
Compat with a package
Extend(Value)
Extend a package
Finish()
Finish evaluation early
Fail(Option<FailReason>)
Fail evaluation
Notice(Value)
Present a notice to the user
Cmd(Vec<Value>)
Run a command
Call(Later<String>)
Call another routine
Custom(Later<String>, Vec<String>)
Custom implementation-specific instruction