pub struct ScreenTimeoutSettings {
pub screen_timeout: Option<Duration>,
pub screen_timeout_mode: Option<String>,
}
Expand description
Controls the screen timeout settings.
This type is not used in any activity, and only used as part of another schema.
Fields§
§screen_timeout: Option<Duration>
Optional. Controls the screen timeout duration. The screen timeout duration must be greater than 0, otherwise it is rejected. Additionally, it should not be greater than maximumTimeToLock, otherwise the screen timeout is set to maximumTimeToLock and a NonComplianceDetail with INVALID_VALUE reason and SCREEN_TIMEOUT_GREATER_THAN_MAXIMUM_TIME_TO_LOCK specific reason is reported. If the screen timeout is less than a certain lower bound, it is set to the lower bound. The lower bound may vary across devices. If this is set, screenTimeoutMode must be SCREEN_TIMEOUT_ENFORCED. 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_timeout_mode: Option<String>
Optional. Controls whether the user is allowed to configure the screen timeout.
Trait Implementations§
Source§impl Clone for ScreenTimeoutSettings
impl Clone for ScreenTimeoutSettings
Source§fn clone(&self) -> ScreenTimeoutSettings
fn clone(&self) -> ScreenTimeoutSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScreenTimeoutSettings
impl Debug for ScreenTimeoutSettings
Source§impl Default for ScreenTimeoutSettings
impl Default for ScreenTimeoutSettings
Source§fn default() -> ScreenTimeoutSettings
fn default() -> ScreenTimeoutSettings
Source§impl<'de> Deserialize<'de> for ScreenTimeoutSettings
impl<'de> Deserialize<'de> for ScreenTimeoutSettings
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>,
Source§impl Serialize for ScreenTimeoutSettings
impl Serialize for ScreenTimeoutSettings
impl Part for ScreenTimeoutSettings
Auto Trait Implementations§
impl Freeze for ScreenTimeoutSettings
impl RefUnwindSafe for ScreenTimeoutSettings
impl Send for ScreenTimeoutSettings
impl Sync for ScreenTimeoutSettings
impl Unpin for ScreenTimeoutSettings
impl UnwindSafe for ScreenTimeoutSettings
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
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>
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>
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