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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.