pub struct PermissionUrlsConfig {
pub initial_allowed: Option<Vec<String>>,
pub unrestricted: Option<bool>,
}Expand description
If specified, replaces the session’s URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§initial_allowed: Option<Vec<String>>Initial list of allowed URL/domain patterns. Patterns may include path components. Ignored when unrestricted is true.
unrestricted: Option<bool>If true, the runtime allows access to all URLs without prompting. Initial allow-list is ignored when this is true.
Trait Implementations§
Source§impl Clone for PermissionUrlsConfig
impl Clone for PermissionUrlsConfig
Source§fn clone(&self) -> PermissionUrlsConfig
fn clone(&self) -> PermissionUrlsConfig
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 Debug for PermissionUrlsConfig
impl Debug for PermissionUrlsConfig
Source§impl Default for PermissionUrlsConfig
impl Default for PermissionUrlsConfig
Source§fn default() -> PermissionUrlsConfig
fn default() -> PermissionUrlsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionUrlsConfig
impl<'de> Deserialize<'de> for PermissionUrlsConfig
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 PermissionUrlsConfig
impl RefUnwindSafe for PermissionUrlsConfig
impl Send for PermissionUrlsConfig
impl Sync for PermissionUrlsConfig
impl Unpin for PermissionUrlsConfig
impl UnsafeUnpin for PermissionUrlsConfig
impl UnwindSafe for PermissionUrlsConfig
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