pub struct SetPermissionParams<'a> { /* private fields */ }Expand description
Set permission settings for given embedding and embedded origins.
Implementations§
Source§impl<'a> SetPermissionParams<'a>
impl<'a> SetPermissionParams<'a>
Sourcepub fn builder(
permission: PermissionDescriptor<'a>,
setting: impl Into<PermissionSetting>,
) -> SetPermissionParamsBuilder<'a>
pub fn builder( permission: PermissionDescriptor<'a>, setting: impl Into<PermissionSetting>, ) -> SetPermissionParamsBuilder<'a>
Creates a builder for this type with the required parameters:
permission: Descriptor of permission to override.setting: Setting of the permission.
Sourcepub fn permission(&self) -> &PermissionDescriptor<'a>
pub fn permission(&self) -> &PermissionDescriptor<'a>
Descriptor of permission to override.
Sourcepub fn setting(&self) -> &PermissionSetting
pub fn setting(&self) -> &PermissionSetting
Setting of the permission.
Sourcepub fn origin(&self) -> Option<&str>
pub fn origin(&self) -> Option<&str>
Embedding origin the permission applies to, all origins if not specified.
Sourcepub fn embedded_origin(&self) -> Option<&str>
pub fn embedded_origin(&self) -> Option<&str>
Embedded origin the permission applies to. It is ignored unless the embedding origin is present and valid. If the embedding origin is provided but the embedded origin isn’t, the embedding origin is used as the embedded origin.
Sourcepub fn browser_context_id(&self) -> Option<&BrowserContextID<'a>>
pub fn browser_context_id(&self) -> Option<&BrowserContextID<'a>>
Context to override. When omitted, default browser context is used.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetPermissionParams<'a>
impl<'a> CdpCommand<'a> for SetPermissionParams<'a>
Source§impl<'a> Clone for SetPermissionParams<'a>
impl<'a> Clone for SetPermissionParams<'a>
Source§fn clone(&self) -> SetPermissionParams<'a>
fn clone(&self) -> SetPermissionParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SetPermissionParams<'a>
impl<'a> Debug for SetPermissionParams<'a>
Source§impl<'a> Default for SetPermissionParams<'a>
impl<'a> Default for SetPermissionParams<'a>
Source§fn default() -> SetPermissionParams<'a>
fn default() -> SetPermissionParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SetPermissionParams<'a>
impl<'de, 'a> Deserialize<'de> for SetPermissionParams<'a>
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<'a> Freeze for SetPermissionParams<'a>
impl<'a> RefUnwindSafe for SetPermissionParams<'a>
impl<'a> Send for SetPermissionParams<'a>
impl<'a> Sync for SetPermissionParams<'a>
impl<'a> Unpin for SetPermissionParams<'a>
impl<'a> UnsafeUnpin for SetPermissionParams<'a>
impl<'a> UnwindSafe for SetPermissionParams<'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