pub struct PermissionStatus {
pub location: PermissionState,
pub coarse_location: PermissionState,
}
Fields§
§location: PermissionState
Permission state for the location alias.
On Android it requests/checks both ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION permissions.
On iOS it requests/checks location permissions.
coarse_location: PermissionState
Permissions state for the coarseLoaction alias.
On Android it requests/checks ACCESS_COARSE_LOCATION.
On Android 12+, users can choose between Approximate location (ACCESS_COARSE_LOCATION) and Precise location (ACCESS_FINE_LOCATION).
On iOS it will have the same value as the location
alias.
Trait Implementations§
Source§impl Clone for PermissionStatus
impl Clone for PermissionStatus
Source§fn clone(&self) -> PermissionStatus
fn clone(&self) -> PermissionStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PermissionStatus
impl Debug for PermissionStatus
Source§impl Default for PermissionStatus
impl Default for PermissionStatus
Source§fn default() -> PermissionStatus
fn default() -> PermissionStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionStatus
impl<'de> Deserialize<'de> for PermissionStatus
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
Auto Trait Implementations§
impl Freeze for PermissionStatus
impl RefUnwindSafe for PermissionStatus
impl Send for PermissionStatus
impl Sync for PermissionStatus
impl Unpin for PermissionStatus
impl UnwindSafe for PermissionStatus
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