pub struct SystemUpdate {
pub end_minutes: Option<i32>,
pub freeze_periods: Option<Vec<FreezePeriod>>,
pub start_minutes: Option<i32>,
pub type_: Option<String>,
}
Expand description
Configuration for managing system updatesNote: Google Play system updates (https://source.android.com/docs/core/ota/modular-system) (also called Mainline updates) are automatically downloaded but require a device reboot to be installed. Refer to the mainline section in Manage system updates (https://developer.android.com/work/dpc/system-updates#mainline) for further details.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_minutes: Option<i32>
If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device’s local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time.
freeze_periods: Option<Vec<FreezePeriod>>
An annually repeating time period in which over-the-air (OTA) system updates are postponed to freeze the OS version running on a device. To prevent freezing the device indefinitely, each freeze period must be separated by at least 60 days.
start_minutes: Option<i32>
If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device’s local time. This value must be between 0 and 1439, inclusive.
type_: Option<String>
The type of system update to configure.
Trait Implementations§
Source§impl Clone for SystemUpdate
impl Clone for SystemUpdate
Source§fn clone(&self) -> SystemUpdate
fn clone(&self) -> SystemUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SystemUpdate
impl Debug for SystemUpdate
Source§impl Default for SystemUpdate
impl Default for SystemUpdate
Source§fn default() -> SystemUpdate
fn default() -> SystemUpdate
Source§impl<'de> Deserialize<'de> for SystemUpdate
impl<'de> Deserialize<'de> for SystemUpdate
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 SystemUpdate
impl Serialize for SystemUpdate
impl Part for SystemUpdate
Auto Trait Implementations§
impl Freeze for SystemUpdate
impl RefUnwindSafe for SystemUpdate
impl Send for SystemUpdate
impl Sync for SystemUpdate
impl Unpin for SystemUpdate
impl UnwindSafe for SystemUpdate
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