#[non_exhaustive]pub struct Response {
pub columns: Option<Vec<Column>>,
pub cursor: Option<String>,
pub id: Option<Id>,
pub is_running: Option<bool>,
pub is_partial: Option<bool>,
pub rows: Vec<Row>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.columns: Option<Vec<Column>>Column headings for the search results. Each object is a column.
cursor: Option<String>The cursor for the next set of paginated results.
For CSV, TSV, and TXT responses, this value is returned in the Cursor HTTP header.
id: Option<Id>The identifier for the search.
This value is returned only for async and saved synchronous searches.
For CSV, TSV, and TXT responses, this value is returned in the Async-ID HTTP header.
is_running: Option<bool>If true, the search is still running.
If false, the search has finished.
This value is returned only for async and saved synchronous searches.
For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header.
is_partial: Option<bool>If true, the response does not contain complete search results.
If is_partial is true and is_running is true, the search is still running.
If is_partial is true but is_running is false, the results are partial due to a failure or timeout.
This value is returned only for async and saved synchronous searches.
For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header.
rows: Vec<Row>The values for the search results.
Implementations§
Source§impl Response
impl Response
Sourcepub fn is_running(self, value: bool) -> Self
pub fn is_running(self, value: bool) -> Self
Sets is_running.
Sourcepub fn is_partial(self, value: bool) -> Self
pub fn is_partial(self, value: bool) -> Self
Sets is_partial.