pub struct PermissionDescriptorBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> PermissionDescriptorBuilder<'a>
impl<'a> PermissionDescriptorBuilder<'a>
Sourcepub fn user_visible_only(self, user_visible_only: bool) -> Self
pub fn user_visible_only(self, user_visible_only: bool) -> Self
For “push” permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.
Sourcepub fn allow_without_sanitization(
self,
allow_without_sanitization: bool,
) -> Self
pub fn allow_without_sanitization( self, allow_without_sanitization: bool, ) -> Self
For “clipboard” permission, may specify allowWithoutSanitization.
Sourcepub fn allow_without_gesture(self, allow_without_gesture: bool) -> Self
pub fn allow_without_gesture(self, allow_without_gesture: bool) -> Self
For “fullscreen” permission, must specify allowWithoutGesture:true.
Sourcepub fn pan_tilt_zoom(self, pan_tilt_zoom: bool) -> Self
pub fn pan_tilt_zoom(self, pan_tilt_zoom: bool) -> Self
For “camera” permission, may specify panTiltZoom.
pub fn build(self) -> PermissionDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for PermissionDescriptorBuilder<'a>
impl<'a> RefUnwindSafe for PermissionDescriptorBuilder<'a>
impl<'a> Send for PermissionDescriptorBuilder<'a>
impl<'a> Sync for PermissionDescriptorBuilder<'a>
impl<'a> Unpin for PermissionDescriptorBuilder<'a>
impl<'a> UnsafeUnpin for PermissionDescriptorBuilder<'a>
impl<'a> UnwindSafe for PermissionDescriptorBuilder<'a>
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