pub struct ResourceSecurityPolicy {
pub allowed_schemes: Vec<String>,
pub blocked_patterns: Vec<String>,
pub allow_external: bool,
pub allow_local_files: bool,
pub max_redirects: u32,
pub validate_ssl: bool,
}Expand description
Security policy for embedded resources
Fields§
§allowed_schemes: Vec<String>Allowed URI schemes
blocked_patterns: Vec<String>Blocked URI patterns (regex)
allow_external: boolWhether to allow external resources
allow_local_files: boolWhether to allow local file access
max_redirects: u32Maximum redirection depth
validate_ssl: boolWhether to validate SSL certificates
Trait Implementations§
Source§impl Clone for ResourceSecurityPolicy
impl Clone for ResourceSecurityPolicy
Source§fn clone(&self) -> ResourceSecurityPolicy
fn clone(&self) -> ResourceSecurityPolicy
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 ResourceSecurityPolicy
impl Debug for ResourceSecurityPolicy
Source§impl Default for ResourceSecurityPolicy
impl Default for ResourceSecurityPolicy
Source§fn default() -> ResourceSecurityPolicy
fn default() -> ResourceSecurityPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceSecurityPolicy
impl<'de> Deserialize<'de> for ResourceSecurityPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceSecurityPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceSecurityPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ResourceSecurityPolicy
impl Serialize for ResourceSecurityPolicy
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 ResourceSecurityPolicy
impl RefUnwindSafe for ResourceSecurityPolicy
impl Send for ResourceSecurityPolicy
impl Sync for ResourceSecurityPolicy
impl Unpin for ResourceSecurityPolicy
impl UnwindSafe for ResourceSecurityPolicy
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