#[non_exhaustive]pub struct InstallRule {
pub route: String,
pub default_file_extensions: Vec<String>,
pub tracking_method: TrackingMethod,
pub sub_routes: Vec<InstallRule>,
pub is_default_location: bool,
}Expand description
A single, possibly nested, routing rule for a regular mod’s files.
#[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.route: StringDestination path relative to the profile root, e.g. "BepInEx/plugins".
The final path segment is the override-folder name matched at a package’s
root (e.g. plugins).
default_file_extensions: Vec<String>Extensions (matched as filename suffixes) that route a loose file here. When several rules match, the longest suffix wins.
tracking_method: TrackingMethodHow matched files are placed and tracked under InstallRule::route.
sub_routes: Vec<InstallRule>Nested rules applied within this rule’s route.
is_default_location: boolWhether this rule is the catch-all for files matching no other rule. At most one rule per profile is the default location; some have none.
Trait Implementations§
Source§impl Clone for InstallRule
impl Clone for InstallRule
Source§impl Debug for InstallRule
impl Debug for InstallRule
Source§impl<'de> Deserialize<'de> for InstallRule
impl<'de> Deserialize<'de> for InstallRule
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 InstallRule
impl RefUnwindSafe for InstallRule
impl Send for InstallRule
impl Sync for InstallRule
impl Unpin for InstallRule
impl UnsafeUnpin for InstallRule
impl UnwindSafe for InstallRule
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