pub struct PermissionDescriptor { /* private fields */ }
Available on crate features
Browser
and experimental
only.Expand description
Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
Implementations§
Source§impl PermissionDescriptor
impl PermissionDescriptor
pub fn builder() -> PermissionDescriptorBuilder
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
Sourcepub fn user_visible_only(&self) -> Option<&bool>
pub fn user_visible_only(&self) -> Option<&bool>
For “push” permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.
Sourcepub fn allow_without_sanitization(&self) -> Option<&bool>
pub fn allow_without_sanitization(&self) -> Option<&bool>
For “clipboard” permission, may specify allowWithoutSanitization.
Sourcepub fn pan_tilt_zoom(&self) -> Option<&bool>
pub fn pan_tilt_zoom(&self) -> Option<&bool>
For “camera” permission, may specify panTiltZoom.
Trait Implementations§
Source§impl Clone for PermissionDescriptor
impl Clone for PermissionDescriptor
Source§fn clone(&self) -> PermissionDescriptor
fn clone(&self) -> PermissionDescriptor
Returns a duplicate 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 PermissionDescriptor
impl Debug for PermissionDescriptor
Source§impl<'de> Deserialize<'de> for PermissionDescriptor
impl<'de> Deserialize<'de> for PermissionDescriptor
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 PermissionDescriptor
impl RefUnwindSafe for PermissionDescriptor
impl Send for PermissionDescriptor
impl Sync for PermissionDescriptor
impl Unpin for PermissionDescriptor
impl UnwindSafe for PermissionDescriptor
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