Struct chrome_remote_interface_model::browser::PermissionDescriptor[][src]

pub struct PermissionDescriptor { /* fields omitted */ }
This is supported on crate features Browser and experimental only.

Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

Implementations

impl PermissionDescriptor[src]

pub fn builder() -> PermissionDescriptorBuilder[src]

pub fn name(&self) -> &str[src]

Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.

pub fn sysex(&self) -> Option<&bool>[src]

For "midi" permission, may also specify sysex control.

pub fn user_visible_only(&self) -> Option<&bool>[src]

For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.

pub fn allow_without_sanitization(&self) -> Option<&bool>[src]

For "clipboard" permission, may specify allowWithoutSanitization.

pub fn pan_tilt_zoom(&self) -> Option<&bool>[src]

For "camera" permission, may specify panTiltZoom.

Trait Implementations

impl Clone for PermissionDescriptor[src]

impl Debug for PermissionDescriptor[src]

impl<'de> Deserialize<'de> for PermissionDescriptor[src]

impl Serialize for PermissionDescriptor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.