[][src]Struct ieql::query::response::Response

pub struct Response {
    pub kind: ResponseKind,
    pub include: Vec<ResponseItem>,
}

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.

Fields

kind: ResponseKind

Represents the kind of the response, which corresponds to the possible types of Outputs: Full and Partial.

For more information about Full and Partial responses, see the documentation for ResponseKind and Output.

include: Vec<ResponseItem>

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.

Trait Implementations

impl Validatable for Response
[src]

fn validate(&self) -> Option<Vec<Issue>>
[src]

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.

impl PartialEq<Response> for Response
[src]

impl Clone for Response
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Response
[src]

impl Serialize for Response
[src]

impl<'de> Deserialize<'de> for Response
[src]

Auto Trait Implementations

impl Send for Response

impl Sync for Response

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]