pub struct MetadataPatch {
pub priority: i32,
pub before: Vec<String>,
pub after: Vec<String>,
pub main_class: Option<String>,
pub remove_library_prefixes: Vec<String>,
pub add_libraries: Vec<PistonMetaLibraries>,
pub game_arguments: Vec<PistonMetaGenericArgument>,
pub jvm_arguments: Vec<PistonMetaGenericArgument>,
pub logging: Option<PistonMetaLogging>,
pub java_major_version: Option<usize>,
}Expand description
Declarative transformation applied on top of a base PistonMetaData.
Fields§
§priority: i32§before: Vec<String>§after: Vec<String>§main_class: Option<String>§remove_library_prefixes: Vec<String>§add_libraries: Vec<PistonMetaLibraries>§game_arguments: Vec<PistonMetaGenericArgument>§jvm_arguments: Vec<PistonMetaGenericArgument>§logging: Option<PistonMetaLogging>§java_major_version: Option<usize>Trait Implementations§
Source§impl Clone for MetadataPatch
impl Clone for MetadataPatch
Source§fn clone(&self) -> MetadataPatch
fn clone(&self) -> MetadataPatch
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 MetadataPatch
impl Debug for MetadataPatch
Source§impl Default for MetadataPatch
impl Default for MetadataPatch
Source§fn default() -> MetadataPatch
fn default() -> MetadataPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataPatch
impl<'de> Deserialize<'de> for MetadataPatch
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetadataPatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetadataPatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MetadataPatch
impl Serialize for MetadataPatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for MetadataPatch
impl Freeze for MetadataPatchwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PistonMetaLibraries>: Freeze,
PhantomData<PistonMetaGenericArgument>: Freeze,
impl Move for MetadataPatch
impl RefUnwindSafe for MetadataPatch
impl Send for MetadataPatch
impl Sync for MetadataPatch
impl Unpin for MetadataPatch
impl UnsafeUnpin for MetadataPatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PistonMetaLibraries>: UnsafeUnpin,
PhantomData<PistonMetaGenericArgument>: UnsafeUnpin,
impl UnwindSafe for MetadataPatchwhere
RawVecInner: UnwindSafe,
HashMap<String, PistonMetaLibrariesDownloadsArtifact>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
HashMap<String, String>: UnwindSafe,
HashMap<String, bool>: UnwindSafe,
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