pub struct ContentRuleList {
pub id: String,
pub version: String,
pub json: Arc<str>,
}Expand description
A WebKit content rule list (crate::WebView::content_rules): a JSON array of
{"trigger": …, "action": …} rules in WebKit’s content blocker format, compiled by the
engine once and kept compiled across launches.
Fields§
§id: StringNames the list in the engine’s compiled store. Keep it stable across launches.
version: StringThe list’s version. A compiled list whose version differs is compiled again; one whose
version matches is loaded as it is, without reading json.
json: Arc<str>The rules, as JSON text.
Implementations§
Trait Implementations§
Source§impl Clone for ContentRuleList
impl Clone for ContentRuleList
Source§impl Debug for ContentRuleList
impl Debug for ContentRuleList
impl Eq for ContentRuleList
Source§impl PartialEq for ContentRuleList
impl PartialEq for ContentRuleList
impl StructuralPartialEq for ContentRuleList
Auto Trait Implementations§
impl Forget for ContentRuleList
impl Freeze for ContentRuleList
impl Move for ContentRuleList
impl RefUnwindSafe for ContentRuleList
impl Send for ContentRuleList
impl Sync for ContentRuleList
impl Unpin for ContentRuleList
impl UnsafeUnpin for ContentRuleList
impl UnwindSafe for ContentRuleList
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more