pub struct BehaviourOptions {
pub allow_external_navigation: bool,
pub allowed_domains: Option<Vec<String>>,
pub enable_devtools: bool,
pub allow_remote_content: bool,
pub allow_notifications: bool,
}Expand description
Behaviour and security configuration.
Fields§
Whether navigation away from the initial content is allowed.
allowed_domains: Option<Vec<String>>Optional allowlist of hostnames that can be navigated to. Only applies if allow_external_navigation is true.
enable_devtools: boolWhether devtools are enabled.
allow_remote_content: boolWhether remote URL loading is permitted at all.
allow_notifications: boolWhether system notifications are allowed.
Trait Implementations§
Source§impl Clone for BehaviourOptions
impl Clone for BehaviourOptions
Source§fn clone(&self) -> BehaviourOptions
fn clone(&self) -> BehaviourOptions
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 BehaviourOptions
impl Debug for BehaviourOptions
Source§impl Default for BehaviourOptions
impl Default for BehaviourOptions
Source§fn default() -> BehaviourOptions
fn default() -> BehaviourOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BehaviourOptions
impl<'de> Deserialize<'de> for BehaviourOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BehaviourOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BehaviourOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BehaviourOptions
impl Serialize for BehaviourOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BehaviourOptions
impl RefUnwindSafe for BehaviourOptions
impl Send for BehaviourOptions
impl Sync for BehaviourOptions
impl Unpin for BehaviourOptions
impl UnsafeUnpin for BehaviourOptions
impl UnwindSafe for BehaviourOptions
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