Struct Response Copy item path Source pub struct Response {
pub kind: ResponseKind ,
pub include: Vec <ResponseItem >,
}
Expand description Represents a response—in other words, the parameters for
outputs.
This type does not compile as it has ‘no moving
parts’—it is simply information that is passed along
to the scanning system to guide it as it generates
outputs.
This type is parallel, but different , from the
Output
type. You can think of a Response
as the
parameters for creating Outputs; not as the outputs
themselves.
Represents the kind of the response, which corresponds
to the possible types of Output
s: Full
and Partial
.
For more information about Full
and Partial
responses,
see the documentation for ResponseKind
and Output
.
Represents the type of information that should be included
in the Output
.
For more information about response items, see the
documentation for ResponseItem
and OutputItem
.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Serialize this value into the given Serde serializer.
Read more Validates the Response and ensures that no invalid parameters
are present.
More specifically, this function ensures that Excerpt
and Url
,
which are not reducable, are not present in include
.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.