pub enum TrustContext {
UrlTrust {
command: String,
url: String,
protocol: Option<String>,
},
HtmlClass {
class: String,
},
HtmlId {
id: String,
},
HtmlStyle {
style: String,
},
HtmlData {
attributes: HashMap<String, String>,
},
}Expand description
The context of a trust check for potentially unsafe commands.
Variants§
Auto Trait Implementations§
impl Freeze for TrustContext
impl RefUnwindSafe for TrustContext
impl Send for TrustContext
impl Sync for TrustContext
impl Unpin for TrustContext
impl UnsafeUnpin for TrustContext
impl UnwindSafe for TrustContext
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