有关导致漏洞的任何资源(例如 JavaScript 来源、图片、音频文件等)的信息。
字段
content_type
此资源的 MIME 类型。
resource_url
此违规资源的网址。
实现
新
fn new() -> Self
set_content_type
fn set_content_type<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
设置 [content_type][crate::model::ViolatingResource::content_type] 的值。
set_resource_url
fn set_resource_url<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
设置 [resource_url][crate::model::ViolatingResource::resource_url] 的值。