#[non_exhaustive]pub struct VersionPolicy {
pub fallback: Option<RawStr>,
pub fallback_warnings: Option<Arc<dyn FallbackWarningSink>>,
pub force_bundle: Option<UnityVersion>,
pub force_serialized: Option<UnityVersion>,
}Expand description
The fallback and the overrides.
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.fallback: Option<RawStr>UnityPy’s config.FALLBACK_UNITY_VERSION, as a string (UnityPy parses it
each time it is used; a bad string fails there). None raises where
UnityPy raises (config.py:25-32); the oracle leaves it unset.
fallback_warnings: Option<Arc<dyn FallbackWarningSink>>Shared warning filter/emitter for config.get_fallback_version.
Bindings install their Python warning emitter; native callers may opt
into collecting warnings. Called before parsing the fallback string.
force_bundle: Option<UnityVersion>Replaces chain 1’s result.
force_serialized: Option<UnityVersion>Replaces chain 2’s result.
Trait Implementations§
Source§impl Clone for VersionPolicy
impl Clone for VersionPolicy
Source§impl Debug for VersionPolicy
impl Debug for VersionPolicy
Auto Trait Implementations§
impl !Freeze for VersionPolicy
impl !RefUnwindSafe for VersionPolicy
impl !UnwindSafe for VersionPolicy
impl Forget for VersionPolicy
impl Move for VersionPolicy
impl Send for VersionPolicy
impl Sync for VersionPolicy
impl Unpin for VersionPolicy
impl UnsafeUnpin for VersionPolicy
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