Struct chromiumoxide_cdp::cdp::browser_protocol::browser::GrantPermissionsParams [−][src]
pub struct GrantPermissionsParams { pub permissions: Vec<PermissionType>, pub origin: Option<String>, pub browser_context_id: Option<BrowserContextId>, }
Expand description
Grant specific permissions to the given origin and reject all others. grantPermissions
Fields
permissions: Vec<PermissionType>
origin: Option<String>
Origin the permission applies to, all origins if not specified.
browser_context_id: Option<BrowserContextId>
BrowserContext to override permissions. When omitted, default browser context is used.
Implementations
Trait Implementations
type Response = GrantPermissionsReturns
type Response = GrantPermissionsReturns
The type of the response this request triggers on the chromium server
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
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GrantPermissionsParams
impl Send for GrantPermissionsParams
impl Sync for GrantPermissionsParams
impl Unpin for GrantPermissionsParams
impl UnwindSafe for GrantPermissionsParams
Blanket Implementations
Mutably borrows from an owned value. Read more