pub struct ScreenBrightnessSettings {
pub screen_brightness: Option<i32>,
pub screen_brightness_mode: Option<String>,
}
Expand description
Controls for the screen brightness settings.
This type is not used in any activity, and only used as part of another schema.
Fields§
§screen_brightness: Option<i32>
Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.
screen_brightness_mode: Option<String>
Optional. Controls the screen brightness mode.
Trait Implementations§
Source§impl Clone for ScreenBrightnessSettings
impl Clone for ScreenBrightnessSettings
Source§fn clone(&self) -> ScreenBrightnessSettings
fn clone(&self) -> ScreenBrightnessSettings
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 ScreenBrightnessSettings
impl Debug for ScreenBrightnessSettings
Source§impl Default for ScreenBrightnessSettings
impl Default for ScreenBrightnessSettings
Source§fn default() -> ScreenBrightnessSettings
fn default() -> ScreenBrightnessSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScreenBrightnessSettings
impl<'de> Deserialize<'de> for ScreenBrightnessSettings
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 Serialize for ScreenBrightnessSettings
impl Serialize for ScreenBrightnessSettings
impl Part for ScreenBrightnessSettings
Auto Trait Implementations§
impl Freeze for ScreenBrightnessSettings
impl RefUnwindSafe for ScreenBrightnessSettings
impl Send for ScreenBrightnessSettings
impl Sync for ScreenBrightnessSettings
impl Unpin for ScreenBrightnessSettings
impl UnwindSafe for ScreenBrightnessSettings
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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