pub struct CSPConfig {Show 29 fields
pub base_uri: Option<Vec<String>>,
pub block_all_mixed_content: Option<Vec<String>>,
pub child_src: Option<Vec<String>>,
pub connect_src: Option<Vec<String>>,
pub default_src: Option<Vec<String>>,
pub font_src: Option<Vec<String>>,
pub form_action: Option<Vec<String>>,
pub frame_ancestors: Option<Vec<String>>,
pub frame_src: Option<Vec<String>>,
pub img_src: Option<Vec<String>>,
pub manifest_src: Option<Vec<String>>,
pub media_src: Option<Vec<String>>,
pub navigate_to: Option<Vec<String>>,
pub object_src: Option<Vec<String>>,
pub plugin_types: Option<Vec<Vec<String>>>,
pub prefetch_src: Option<Vec<String>>,
pub report_to: Option<Vec<String>>,
pub report_uri: Option<Vec<String>>,
pub require_sri_for: Option<Vec<String>>,
pub sandbox_allow: Option<Vec<String>>,
pub script_src: Option<Vec<String>>,
pub script_src_attr: Option<Vec<String>>,
pub script_src_elem: Option<Vec<String>>,
pub style_src: Option<Vec<String>>,
pub style_src_attr: Option<Vec<String>>,
pub style_src_elem: Option<Vec<String>>,
pub trusted_types: Option<Vec<String>>,
pub upgrade_insecure_requests: Option<Vec<String>>,
pub worker_src: Option<Vec<String>>,
}
Fields§
§base_uri: Option<Vec<String>>
§block_all_mixed_content: Option<Vec<String>>
§child_src: Option<Vec<String>>
§connect_src: Option<Vec<String>>
§default_src: Option<Vec<String>>
§font_src: Option<Vec<String>>
§form_action: Option<Vec<String>>
§frame_ancestors: Option<Vec<String>>
§frame_src: Option<Vec<String>>
§img_src: Option<Vec<String>>
§manifest_src: Option<Vec<String>>
§media_src: Option<Vec<String>>
§object_src: Option<Vec<String>>
§plugin_types: Option<Vec<Vec<String>>>
§prefetch_src: Option<Vec<String>>
§report_to: Option<Vec<String>>
§report_uri: Option<Vec<String>>
§require_sri_for: Option<Vec<String>>
§sandbox_allow: Option<Vec<String>>
§script_src: Option<Vec<String>>
§script_src_attr: Option<Vec<String>>
§script_src_elem: Option<Vec<String>>
§style_src: Option<Vec<String>>
§style_src_attr: Option<Vec<String>>
§style_src_elem: Option<Vec<String>>
§trusted_types: Option<Vec<String>>
§upgrade_insecure_requests: Option<Vec<String>>
§worker_src: Option<Vec<String>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CSPConfig
impl<'de> Deserialize<'de> for CSPConfig
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 CSPConfig
impl RefUnwindSafe for CSPConfig
impl Send for CSPConfig
impl Sync for CSPConfig
impl Unpin for CSPConfig
impl UnwindSafe for CSPConfig
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