pub struct DisplayInfoV2 {
pub manual_brightness_value: f32,
pub auto_brightness: bool,
pub low_light_mode: LowLightMode,
pub theme_mode: ThemeModeV1,
}
Expand description
The following struct should never be modified. It represents an old version of the display settings.
Fields§
§manual_brightness_value: f32
§auto_brightness: bool
§low_light_mode: LowLightMode
§theme_mode: ThemeModeV1
Trait Implementations§
Source§impl Clone for DisplayInfoV2
impl Clone for DisplayInfoV2
Source§fn clone(&self) -> DisplayInfoV2
fn clone(&self) -> DisplayInfoV2
Returns a copy 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 DisplayInfoV2
impl Debug for DisplayInfoV2
Source§impl Default for DisplayInfoV2
impl Default for DisplayInfoV2
Source§impl<'de> Deserialize<'de> for DisplayInfoV2
impl<'de> Deserialize<'de> for DisplayInfoV2
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 DeviceStorageCompatible for DisplayInfoV2
impl DeviceStorageCompatible for DisplayInfoV2
Source§impl From<DisplayInfoV1> for DisplayInfoV2
impl From<DisplayInfoV1> for DisplayInfoV2
Source§fn from(v1: DisplayInfoV1) -> Self
fn from(v1: DisplayInfoV1) -> Self
Converts to this type from the input type.
Source§impl From<DisplayInfoV2> for DisplayInfoV3
impl From<DisplayInfoV2> for DisplayInfoV3
Source§fn from(v2: DisplayInfoV2) -> Self
fn from(v2: DisplayInfoV2) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisplayInfoV2
impl PartialEq for DisplayInfoV2
Source§impl Serialize for DisplayInfoV2
impl Serialize for DisplayInfoV2
impl Copy for DisplayInfoV2
impl StructuralPartialEq for DisplayInfoV2
Auto Trait Implementations§
impl Freeze for DisplayInfoV2
impl RefUnwindSafe for DisplayInfoV2
impl Send for DisplayInfoV2
impl Sync for DisplayInfoV2
impl Unpin for DisplayInfoV2
impl UnwindSafe for DisplayInfoV2
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> DeviceStorageConvertible for Twhere
T: DeviceStorageCompatible,
impl<T> DeviceStorageConvertible for Twhere
T: DeviceStorageCompatible,
§fn get_storable(&self) -> Cow<'_, <T as DeviceStorageConvertible>::Storable>
fn get_storable(&self) -> Cow<'_, <T as DeviceStorageConvertible>::Storable>
Convert
self
into its storable version.