Struct chromiumoxide_cdp::cdp::browser_protocol::browser::PermissionDescriptor [−][src]
pub struct PermissionDescriptor { pub name: String, pub sysex: Option<bool>, pub user_visible_only: Option<bool>, pub allow_without_sanitization: Option<bool>, pub pan_tilt_zoom: Option<bool>, }
Expand description
Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor. PermissionDescriptor
Fields
name: String
Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
sysex: Option<bool>
For “midi” permission, may also specify sysex control.
user_visible_only: Option<bool>
For “push” permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.
allow_without_sanitization: Option<bool>
For “clipboard” permission, may specify allowWithoutSanitization.
pan_tilt_zoom: Option<bool>
For “camera” permission, may specify panTiltZoom.
Implementations
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PermissionDescriptor
impl Send for PermissionDescriptor
impl Sync for PermissionDescriptor
impl Unpin for PermissionDescriptor
impl UnwindSafe for PermissionDescriptor
Blanket Implementations
Mutably borrows from an owned value. Read more