pub struct SetPermissionCommand { /* private fields */ }
Available on crate features
Browser
and experimental
only.Expand description
Set permission settings for given origin.
Implementations§
Source§impl SetPermissionCommand
impl SetPermissionCommand
pub fn builder() -> SetPermissionCommandBuilder
Sourcepub fn permission(&self) -> &JsonValue
pub fn permission(&self) -> &JsonValue
Descriptor of permission to override.
Sourcepub fn origin(&self) -> Option<&String>
pub fn origin(&self) -> Option<&String>
Origin the permission applies to, all origins if not specified.
Sourcepub fn browser_context_id(&self) -> Option<&JsonValue>
pub fn browser_context_id(&self) -> Option<&JsonValue>
Context to override. When omitted, default browser context is used.
Trait Implementations§
Source§impl Clone for SetPermissionCommand
impl Clone for SetPermissionCommand
Source§fn clone(&self) -> SetPermissionCommand
fn clone(&self) -> SetPermissionCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Command for SetPermissionCommand
impl Command for SetPermissionCommand
Source§impl Debug for SetPermissionCommand
impl Debug for SetPermissionCommand
Source§impl<'de> Deserialize<'de> for SetPermissionCommand
impl<'de> Deserialize<'de> for SetPermissionCommand
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 Freeze for SetPermissionCommand
impl RefUnwindSafe for SetPermissionCommand
impl Send for SetPermissionCommand
impl Sync for SetPermissionCommand
impl Unpin for SetPermissionCommand
impl UnwindSafe for SetPermissionCommand
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