Skip to main content

ManifestConfig

Struct ManifestConfig 

Source
pub struct ManifestConfig {
    pub artifacts: Vec<Artifact>,
    pub vars: ValDefs,
    pub command: String,
    pub workdir: Option<String>,
    pub args: Vec<LaunchFragment>,
    pub envs: ValDefs,
    pub cleanup: Vec<CleanupRule>,
}
Expand description

The author-supplied half of the manifest.

The launch line is written as data. A bare string that begins with @ — @forge.jvmArgs — names a launch group a plugin exposes, and is replaced by it here; \@file is the literal @file, which java reads as an argument file. command and workdir take the same spelling, and there a reference has to come to exactly one string. These were functions over a plugin map once, which made a config code where it could be data and left a misspelt group to be found at launch.

Every field but command defaults: the author writes what they mean and omits the rest. command is the one thing a launch cannot do without, so its absence is an error rather than an empty string.

Fields§

§artifacts: Vec<Artifact>

Hand-written literal artifacts, appended after all plugin output.

§vars: ValDefs

Override vars layered on top of the merged plugin vars — the sanctioned silent override, so no collision warning is raised for it.

§command: String

A literal, or a reference to a group that is one string.

§workdir: Option<String>

A literal or a reference, as command. None means the manifest default, ".".

§args: Vec<LaunchFragment>§envs: ValDefs§cleanup: Vec<CleanupRule>

Emitted only when non-empty, matching the wire format.

Trait Implementations§

Source§

impl Clone for ManifestConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ManifestConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ManifestConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ManifestConfig

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.