pub enum PermissionKey {
LocalNetwork {},
Bluetooth {},
Microphone {},
Reminders {},
Automation {
target_bundle_id: String,
},
}Expand description
Automation is authorized per target application, not as one global switch.
Variants§
Trait Implementations§
Source§impl Clone for PermissionKey
impl Clone for PermissionKey
Source§fn clone(&self) -> PermissionKey
fn clone(&self) -> PermissionKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PermissionKey
impl Debug for PermissionKey
Source§impl<'de> Deserialize<'de> for PermissionKey
impl<'de> Deserialize<'de> for PermissionKey
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
impl Eq for PermissionKey
Source§impl Ord for PermissionKey
impl Ord for PermissionKey
Source§fn cmp(&self, other: &PermissionKey) -> Ordering
fn cmp(&self, other: &PermissionKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PermissionKey
impl PartialEq for PermissionKey
Source§impl PartialOrd for PermissionKey
impl PartialOrd for PermissionKey
Source§impl Serialize for PermissionKey
impl Serialize for PermissionKey
impl StructuralPartialEq for PermissionKey
Auto Trait Implementations§
impl Freeze for PermissionKey
impl RefUnwindSafe for PermissionKey
impl Send for PermissionKey
impl Sync for PermissionKey
impl Unpin for PermissionKey
impl UnsafeUnpin for PermissionKey
impl UnwindSafe for PermissionKey
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