pub struct SetPermissionCommandBuilder { /* private fields */ }
Available on crate features
Browser
and experimental
only.Implementations§
Source§impl SetPermissionCommandBuilder
impl SetPermissionCommandBuilder
Sourcepub fn permission(&mut self, v: JsonValue) -> &mut Self
pub fn permission(&mut self, v: JsonValue) -> &mut Self
Descriptor of permission to override.
Sourcepub fn origin(&mut self, v: String) -> &mut Self
pub fn origin(&mut self, v: String) -> &mut Self
Origin the permission applies to, all origins if not specified.
Sourcepub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
pub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
Context to override. When omitted, default browser context is used.
pub fn build(&mut self) -> Result<SetPermissionCommand, &'static str>
Trait Implementations§
Source§impl Clone for SetPermissionCommandBuilder
impl Clone for SetPermissionCommandBuilder
Source§fn clone(&self) -> SetPermissionCommandBuilder
fn clone(&self) -> SetPermissionCommandBuilder
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 Debug for SetPermissionCommandBuilder
impl Debug for SetPermissionCommandBuilder
Auto Trait Implementations§
impl Freeze for SetPermissionCommandBuilder
impl RefUnwindSafe for SetPermissionCommandBuilder
impl Send for SetPermissionCommandBuilder
impl Sync for SetPermissionCommandBuilder
impl Unpin for SetPermissionCommandBuilder
impl UnwindSafe for SetPermissionCommandBuilder
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