pub struct SetPermissionBuilder { /* private fields */ }Expand description
Builder for SetPermission.
Implementations§
Source§impl SetPermissionBuilder
impl SetPermissionBuilder
Sourcepub fn permission<VALUE: Into<PermissionDescriptor>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn permission<VALUE: Into<PermissionDescriptor>>( &mut self, value: VALUE, ) -> &mut Self
Descriptor of permission to override.
Sourcepub fn setting<VALUE: Into<PermissionSetting>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn setting<VALUE: Into<PermissionSetting>>( &mut self, value: VALUE, ) -> &mut Self
Setting of the permission.
Sourcepub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Embedding origin the permission applies to, all origins if not specified.
Sourcepub fn embedded_origin<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn embedded_origin<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
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<VALUE: Into<BrowserContextId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn browser_context_id<VALUE: Into<BrowserContextId>>( &mut self, value: VALUE, ) -> &mut Self
Context to override. When omitted, default browser context is used.
Sourcepub fn build(&self) -> Result<SetPermission, SetPermissionBuilderError>
pub fn build(&self) -> Result<SetPermission, SetPermissionBuilderError>
Trait Implementations§
Source§impl Clone for SetPermissionBuilder
impl Clone for SetPermissionBuilder
Source§fn clone(&self) -> SetPermissionBuilder
fn clone(&self) -> SetPermissionBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetPermissionBuilder
impl RefUnwindSafe for SetPermissionBuilder
impl Send for SetPermissionBuilder
impl Sync for SetPermissionBuilder
impl Unpin for SetPermissionBuilder
impl UnsafeUnpin for SetPermissionBuilder
impl UnwindSafe for SetPermissionBuilder
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