pub struct DisplayInfoV5 {
pub manual_brightness_value: f32,
pub auto_brightness: bool,
pub screen_enabled: bool,
pub low_light_mode: LowLightMode,
pub theme: Option<Theme>,
}
Fields§
§manual_brightness_value: f32
The last brightness value that was manually set.
auto_brightness: bool
§screen_enabled: bool
§low_light_mode: LowLightMode
§theme: Option<Theme>
Trait Implementations§
Source§impl Clone for DisplayInfoV5
impl Clone for DisplayInfoV5
Source§fn clone(&self) -> DisplayInfoV5
fn clone(&self) -> DisplayInfoV5
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 DisplayInfoV5
impl Debug for DisplayInfoV5
Source§impl Default for DisplayInfoV5
impl Default for DisplayInfoV5
Source§impl<'de> Deserialize<'de> for DisplayInfoV5
impl<'de> Deserialize<'de> for DisplayInfoV5
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 DisplayInfoV5
impl DeviceStorageCompatible for DisplayInfoV5
Source§impl From<DisplayInfoV4> for DisplayInfoV5
impl From<DisplayInfoV4> for DisplayInfoV5
Source§fn from(v4: DisplayInfoV4) -> Self
fn from(v4: DisplayInfoV4) -> Self
Converts to this type from the input type.
Source§impl From<DisplayInfoV5> for DisplayInfo
impl From<DisplayInfoV5> for DisplayInfo
Source§fn from(v5: DisplayInfoV5) -> Self
fn from(v5: DisplayInfoV5) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisplayInfoV5
impl PartialEq for DisplayInfoV5
Source§impl Serialize for DisplayInfoV5
impl Serialize for DisplayInfoV5
impl Copy for DisplayInfoV5
impl StructuralPartialEq for DisplayInfoV5
Auto Trait Implementations§
impl Freeze for DisplayInfoV5
impl RefUnwindSafe for DisplayInfoV5
impl Send for DisplayInfoV5
impl Sync for DisplayInfoV5
impl Unpin for DisplayInfoV5
impl UnwindSafe for DisplayInfoV5
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.