pub struct VideoOptions {Show 28 fields
pub vsync: Option<bool>,
pub entity_shadows: Option<bool>,
pub fullscreen: Option<bool>,
pub view_bobbing: Option<bool>,
pub dark_mojang_background: Option<bool>,
pub hide_lightning_flashes: Option<bool>,
pub fov: Option<u8>,
pub screen_effect_scale: Option<f32>,
pub fov_effect_scale: Option<f32>,
pub darkness_effect_scale: Option<f32>,
pub brightness: Option<f32>,
pub render_distance: Option<u8>,
pub simulation_distance: Option<u8>,
pub entity_distance_scaling: Option<f32>,
pub gui_scale: Option<u8>,
pub particles: Option<EnumOrNumber<ParticlesMode>>,
pub max_fps: Option<u8>,
pub graphics_mode: Option<EnumOrNumber<GraphicsMode>>,
pub smooth_lighting: Option<bool>,
pub chunk_updates_mode: Option<EnumOrNumber<ChunkUpdatesMode>>,
pub biome_blend: Option<u8>,
pub clouds: Option<CloudRenderMode>,
pub mipmap_levels: Option<u8>,
pub window_width: Option<u16>,
pub window_height: Option<u16>,
pub attack_indicator: Option<EnumOrNumber<AttackIndicatorMode>>,
pub fullscreen_resolution: Option<FullscreenResolution>,
pub allow_block_alternatives: Option<bool>,
}Fields§
§vsync: Option<bool>§entity_shadows: Option<bool>§fullscreen: Option<bool>§view_bobbing: Option<bool>§dark_mojang_background: Option<bool>§hide_lightning_flashes: Option<bool>§fov: Option<u8>§screen_effect_scale: Option<f32>§fov_effect_scale: Option<f32>§darkness_effect_scale: Option<f32>§brightness: Option<f32>§render_distance: Option<u8>§simulation_distance: Option<u8>§entity_distance_scaling: Option<f32>§gui_scale: Option<u8>§particles: Option<EnumOrNumber<ParticlesMode>>§max_fps: Option<u8>§graphics_mode: Option<EnumOrNumber<GraphicsMode>>§smooth_lighting: Option<bool>§chunk_updates_mode: Option<EnumOrNumber<ChunkUpdatesMode>>§biome_blend: Option<u8>§clouds: Option<CloudRenderMode>§mipmap_levels: Option<u8>§window_width: Option<u16>§window_height: Option<u16>§attack_indicator: Option<EnumOrNumber<AttackIndicatorMode>>§fullscreen_resolution: Option<FullscreenResolution>§allow_block_alternatives: Option<bool>Trait Implementations§
Source§impl Clone for VideoOptions
impl Clone for VideoOptions
Source§fn clone(&self) -> VideoOptions
fn clone(&self) -> VideoOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 VideoOptions
impl Debug for VideoOptions
Source§impl Default for VideoOptions
impl Default for VideoOptions
Source§fn default() -> VideoOptions
fn default() -> VideoOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VideoOptionswhere
VideoOptions: Default,
impl<'de> Deserialize<'de> for VideoOptionswhere
VideoOptions: Default,
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
Source§impl PartialEq for VideoOptions
impl PartialEq for VideoOptions
Source§impl Serialize for VideoOptions
impl Serialize for VideoOptions
impl StructuralPartialEq for VideoOptions
Auto Trait Implementations§
impl Freeze for VideoOptions
impl RefUnwindSafe for VideoOptions
impl Send for VideoOptions
impl Sync for VideoOptions
impl Unpin for VideoOptions
impl UnwindSafe for VideoOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultExt for T
impl<T> DefaultExt for T
Source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Check if the value is equal to it’s default value
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more