pub struct AllowConfig {
pub settimeout_string: bool,
pub settimeout_function: bool,
pub innerhtml_paths: Vec<String>,
pub eval_paths: Vec<String>,
pub unsafe_rust_paths: Vec<String>,
pub approved_secrets: Vec<String>,
}Expand description
Allowlist configuration for approved patterns
Fields§
§settimeout_string: boolAllow setTimeout with string argument
settimeout_function: boolAllow setTimeout with function argument
innerhtml_paths: Vec<String>Paths where innerHTML is allowed
eval_paths: Vec<String>Paths where eval is allowed (e.g., build tools)
unsafe_rust_paths: Vec<String>Paths where unsafe Rust is allowed
approved_secrets: Vec<String>Approved secret patterns (regex)
Trait Implementations§
Source§impl Clone for AllowConfig
impl Clone for AllowConfig
Source§fn clone(&self) -> AllowConfig
fn clone(&self) -> AllowConfig
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 AllowConfig
impl Debug for AllowConfig
Source§impl Default for AllowConfig
impl Default for AllowConfig
Source§fn default() -> AllowConfig
fn default() -> AllowConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllowConfig
impl<'de> Deserialize<'de> for AllowConfig
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 AllowConfig
impl RefUnwindSafe for AllowConfig
impl Send for AllowConfig
impl Sync for AllowConfig
impl Unpin for AllowConfig
impl UnwindSafe for AllowConfig
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