Struct google_androidmanagement1::api::BlockAction
source · pub struct BlockAction {
pub block_after_days: Option<i32>,
pub block_scope: Option<String>,
}
Expand description
An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a device or work profile to displays a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.
This type is not used in any activity, and only used as part of another schema.
Fields§
§block_after_days: Option<i32>
Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays.
block_scope: Option<String>
Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.
Trait Implementations§
source§impl Clone for BlockAction
impl Clone for BlockAction
source§fn clone(&self) -> BlockAction
fn clone(&self) -> BlockAction
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 BlockAction
impl Debug for BlockAction
source§impl Default for BlockAction
impl Default for BlockAction
source§fn default() -> BlockAction
fn default() -> BlockAction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockAction
impl<'de> Deserialize<'de> for BlockAction
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 BlockAction
impl Serialize for BlockAction
impl Part for BlockAction
Auto Trait Implementations§
impl RefUnwindSafe for BlockAction
impl Send for BlockAction
impl Sync for BlockAction
impl Unpin for BlockAction
impl UnwindSafe for BlockAction
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