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.
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.
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
.)
Returns a compiled version of self
, without using self. Importantly, compiling a component will perform a deep clone on that component. Remember: compilation is expensive! Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static