pub struct Scope {
pub pattern: Pattern,
pub content: ScopeContent,
}
Expand description
A Scope
describes the kind of data that will be passed
to the queries, and which queries will be invoked.
The name describes exactly what it suggests: the scope of a particular query.
Fields§
§pattern: Pattern
The scope’s Pattern
is applied to each URL being passed
through the scan engine. In order for a query to be run on
a particular piece of data, the pattern must match
that data’s URL.
content: ScopeContent
The content defines the type of content that the query’s
triggers will be run on. (Possible options include Raw
and Text
; for more information, see ScopeContent
.)
Trait Implementations§
Source§impl CompilableTo<CompiledScope> for Scope
impl CompilableTo<CompiledScope> for Scope
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
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
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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