pub struct FeatureRule {
pub is_demo_user: Option<bool>,
pub has_custom_resolution: Option<bool>,
pub has_quick_plays_support: Option<bool>,
pub is_quick_play_singleplayer: Option<bool>,
pub is_quick_play_multiplayer: Option<bool>,
pub is_quick_play_realms: Option<bool>,
}Expand description
A rule which depends on the toggled features of the launcher
Fields§
§is_demo_user: Option<bool>Whether the user is in demo mode
has_custom_resolution: Option<bool>Whether the user is using a custom resolution
has_quick_plays_support: Option<bool>Whether the launcher has quick plays support
is_quick_play_singleplayer: Option<bool>Whether the instance is being launched to a single-player world
is_quick_play_multiplayer: Option<bool>Whether the instance is being launched to a multi-player world
is_quick_play_realms: Option<bool>Whether the instance is being launched to a realms world
Trait Implementations§
Source§impl Clone for FeatureRule
impl Clone for FeatureRule
Source§fn clone(&self) -> FeatureRule
fn clone(&self) -> FeatureRule
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 FeatureRule
impl Debug for FeatureRule
Source§impl<'de> Deserialize<'de> for FeatureRule
impl<'de> Deserialize<'de> for FeatureRule
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 FeatureRule
impl RefUnwindSafe for FeatureRule
impl Send for FeatureRule
impl Sync for FeatureRule
impl Unpin for FeatureRule
impl UnsafeUnpin for FeatureRule
impl UnwindSafe for FeatureRule
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