#[non_exhaustive]pub struct DefinePermission {
pub name: Option<String>,
pub grant_mode: Option<String>,
pub available_level: Option<String>,
pub provision_enable: Option<bool>,
pub distributed_scene_enable: Option<bool>,
pub label: Option<String>,
pub description: Option<String>,
}Expand description
An entry of definePermissions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>name: the permission declared.
grant_mode: Option<String>system_grant or user_grant.
available_level: Option<String>normal, system_basic or system_core.
provision_enable: Option<bool>provisionEnable: whether the permission may be granted through the provision profile.
distributed_scene_enable: Option<bool>distributedSceneEnable: whether the permission applies in distributed scenarios.
label: Option<String>label: usually a $string: resource reference.
description: Option<String>description: usually a $string: resource reference.
Trait Implementations§
Source§impl Clone for DefinePermission
impl Clone for DefinePermission
Source§impl Debug for DefinePermission
impl Debug for DefinePermission
Source§impl Default for DefinePermission
impl Default for DefinePermission
impl Eq for DefinePermission
Source§impl PartialEq for DefinePermission
impl PartialEq for DefinePermission
impl StructuralPartialEq for DefinePermission
Auto Trait Implementations§
impl Forget for DefinePermission
impl Freeze for DefinePermission
impl Move for DefinePermission
impl RefUnwindSafe for DefinePermission
impl Send for DefinePermission
impl Sync for DefinePermission
impl Unpin for DefinePermission
impl UnsafeUnpin for DefinePermission
impl UnwindSafe for DefinePermission
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